Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 64d50a009919
Choose a base ref
...
head repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: cb4ff927a15a
Choose a head ref

Commits on Jun 3, 2018

  1. fix typo

    srghma authored Jun 3, 2018
    Copy the full SHA
    c4cad45 View commit details

Commits on Oct 28, 2018

  1. Copy the full SHA
    95fab6a View commit details

Commits on Oct 29, 2018

  1. Copy the full SHA
    efca8b4 View commit details
  2. Copy the full SHA
    149a55e View commit details
  3. Copy the full SHA
    2962f94 View commit details
  4. Copy the full SHA
    5be927d View commit details
  5. make-derivation: use lib.assertMsg

    As suggested by @Profpatsch
    Synthetica9 committed Oct 29, 2018
    Copy the full SHA
    c7e026b View commit details

Commits on Oct 30, 2018

  1. Copy the full SHA
    1f7fc09 View commit details

Commits on Nov 1, 2018

  1. Copy the full SHA
    73344be View commit details

Commits on Nov 2, 2018

  1. nixos/rspamd: Add support for included files

    By default rspamd will look for multiple files in /etc/rspamd/local.d
    and /etc/rspamd/override.d to be included in subsections of the merged
    final config for rspamd. Most of the config snippets in the official
    rspamd documentation are made to these files and so it makes sense for
    NixOS to support them and this is what this commit does.
    
    As part of rspamd 1.8.1 support was added for having custom Lua
    rules stored in $LOCAL_CONFDIR/rspamd.local.lua which means that it is
    now possible for NixOS to support such rules and so this commit also
    adds support for this to the rspamd module.
    griff committed Nov 2, 2018
    Copy the full SHA
    0810d63 View commit details
  2. Copy the full SHA
    1ccafe5 View commit details
  3. Copy the full SHA
    f8a415f View commit details
  4. tor: 0.3.4.8 -> 0.3.4.9

    https://gitweb.torproject.org/tor.git/plain/ChangeLog?h=tor-0.3.4.9
    
    Please confirm the sha256 is correct for a verified tarball,
    I'm not setup (or know how offhand but docs look promising)
    to do this myself.
    dtzWill committed Nov 2, 2018
    Copy the full SHA
    c78761b View commit details
  5. Drop obsolete GHC versions 7.10.3, 8.0.2, and 8.4.3.

    We keep the latest minor release of each one of the last 3 major releases,
    which currently are GHC versions 8.2.2, 8.4.4, and 8.6.1. We also have
    ghc-HEAD, but this doesn't count.
    
    Dropping these compilers implied that we have to drop the corresponding
    versions of ghcjs, too. We can also drop a shitload of obsolete compiler
    patches that newer versions no longer need.
    
    At some point, we can probably simplify the generic builder, too.
    peti committed Nov 2, 2018
    Copy the full SHA
    2f0de54 View commit details
  6. zsh-git-prompt: don't hard-code any particular compiler version

    Just use whatever is the current default.
    peti committed Nov 2, 2018
    Copy the full SHA
    bf26876 View commit details
  7. folly: 2018.08.27.00 -> 2018.10.29.00

    Folly disabled autotools-based builds in favor of CMake.
    langston-barrett committed Nov 2, 2018
    Copy the full SHA
    45db416 View commit details
  8. yices: 2.6.0 -> 2.6.1

    kquick committed Nov 2, 2018
    Copy the full SHA
    411c665 View commit details
  9. ansible_2_5: 2.5.2 -> 2.5.11

    sengaya committed Nov 2, 2018
    Copy the full SHA
    de8a3e3 View commit details
  10. ansible_2_6: 2.6.2 -> 2.6.7

    sengaya committed Nov 2, 2018
    Copy the full SHA
    e63509a View commit details
  11. ansible_2_7: init at 2.7.1

    sengaya committed Nov 2, 2018
    Copy the full SHA
    c0d30e5 View commit details
  12. Copy the full SHA
    a3739a9 View commit details

Commits on Nov 3, 2018

  1. maxx: fix urls

    gnidorah committed Nov 3, 2018
    Copy the full SHA
    fc96e53 View commit details
  2. thunderbird: 60.2.1 -> 60.3.0

    taku0 committed Nov 3, 2018
    Copy the full SHA
    09d49a1 View commit details
  3. Copy the full SHA
    f5af5b1 View commit details
  4. Merge #49677: thunderbird*: 60.2.1 -> 60.3.0

    Critical security fixes.
    vcunat committed Nov 3, 2018
    Copy the full SHA
    f3cca2f View commit details
  5. Merge pull request #49652 from dtzWill/update/tor-0.3.4.9

    tor: 0.3.4.8 -> 0.3.4.9
    joachifm authored Nov 3, 2018
    Copy the full SHA
    0e76e13 View commit details
  6. Merge pull request #49660 from kquick/yices-2.6.1

    yices: 2.6.0 -> 2.6.1
    markuskowa authored Nov 3, 2018
    Copy the full SHA
    759c26b View commit details
  7. Merge pull request #49672 from gnidorah/maxx

    maxx: fix urls
    markuskowa authored Nov 3, 2018
    Copy the full SHA
    684e77d View commit details
  8. Merge pull request #48496 from rvl/bpftrace

    linuxPackages.bpftrace: init at unstable-2018-10-27
    c0bw3b authored Nov 3, 2018
    Copy the full SHA
    721ab2e View commit details
  9. Merge pull request #49559 from ikarulus/librepcb

    bump version librepcb-unstable: 2018-06-28 -> 2018-10-31
    c0bw3b authored Nov 3, 2018
    Copy the full SHA
    848f2f3 View commit details
  10. home-assistant: 0.81.2 -> 0.81.5

    Robert Schütz committed Nov 3, 2018
    Copy the full SHA
    c1324d5 View commit details
  11. Merge pull request #49645 from peterhoeg/p/broadlink

     pythonPackages.broadlink: init at 0.9
    dotlambda authored Nov 3, 2018
    Copy the full SHA
    4870522 View commit details
  12. Copy the full SHA
    4b095c6 View commit details
  13. Copy the full SHA
    e9d31c8 View commit details
  14. Merge pull request #49650 from srghma/srghma-patch-1

    amazon-image: fix typo in comment
    flokli authored Nov 3, 2018
    Copy the full SHA
    4d51002 View commit details
  15. Merge pull request #48082 from sengaya/ansible-2.7

    ansible: Update to latest supported releases
    c0bw3b authored Nov 3, 2018
    Copy the full SHA
    78a6ee6 View commit details
  16. Copy the full SHA
    99c052b View commit details
  17. i2pd: 2.21.0 -> 2.21.1

    edwtjo committed Nov 3, 2018
    Copy the full SHA
    dff14ec View commit details
  18. Merge pull request #49656 from siddharthist/folly

    folly: 2018.08.27.00 -> 2018.10.29.00
    c0bw3b authored Nov 3, 2018
    Copy the full SHA
    8b54203 View commit details
  19. Copy the full SHA
    74ef823 View commit details
  20. shutter: 0.94 -> 0.94.2 (#49546)

    * shutter: 0.94 -> 0.94.2
    
    * shutter: dependencies refresh
    
    procps and perlPackages.FileBaseDir were missing
    Perl package JSONMaybeXS replaces JSONXS
    Moved makeWrapper to nativeBuildInputs
    fadenb authored and c0bw3b committed Nov 3, 2018
    Copy the full SHA
    5a1708b View commit details
  21. lightdm-mini-greeter: 0.3.3 -> 0.3.4 (#49655)

    New upstream release.
    prikhi authored and xeji committed Nov 3, 2018
    Copy the full SHA
    b0068a2 View commit details
  22. yoda: 1.7.1 -> 1.7.3 (#49654)

    veprbl authored and xeji committed Nov 3, 2018
    Copy the full SHA
    f6aac1c View commit details
  23. x11basic: init at 1.26

    edwtjo committed Nov 3, 2018
    Copy the full SHA
    df28b4b View commit details
  24. consul: 0.9.3 -> 1.3.0.

    Removes the old UI build tooling; it is no longer necessary
    because as of 1.2.0 it's bundled into the server binary.
    It doesn't even need to have JS built, because it's bundled into
    the release commit's source tree (see #48714).
    
    The UI is enabled by default, so the NixOS service is
    updated to directly use `ui = webUi;` now.
    
    Fixes #48714.
    Fixes #44192.
    Fixes #41243.
    Fixes #35602.
    
    Signed-off-by: Niklas Hambüchen <mail@nh2.me>
    nh2 committed Nov 3, 2018
    Copy the full SHA
    2cb7f5f View commit details
  25. nixos manual: Add changelog for consul

    Signed-off-by: Niklas Hambüchen <mail@nh2.me>
    nh2 committed Nov 3, 2018
    Copy the full SHA
    32c2d48 View commit details
  26. Merge pull request #49165 from nh2/consul-1.3.0

    consul: 0.9.3 -> 1.3.0 with vendored UI
    c0bw3b authored Nov 3, 2018
    Copy the full SHA
    3234079 View commit details
  27. Merge pull request #49653 from peti/drop-old-ghc-versions

    drop old ghc versions 7.10.3, 8.0.2, and 8.4.3.
    peti authored Nov 3, 2018
    Copy the full SHA
    bf084e0 View commit details
  28. Copy the full SHA
    f259074 View commit details
  29. nvidia-x11: 410.66 -> 410.73

    eadwu authored and FRidh committed Nov 3, 2018
    Copy the full SHA
    ef16e1f View commit details
Showing with 833 additions and 2,960 deletions.
  1. +8 −0 nixos/doc/manual/release-notes/rl-1903.xml
  2. +77 −2 nixos/modules/services/mail/rspamd.nix
  3. +4 −3 nixos/modules/services/misc/gitlab.nix
  4. +4 −3 nixos/modules/services/networking/consul.nix
  5. +1 −1 nixos/modules/virtualisation/amazon-image.nix
  6. +0 −1 nixos/modules/virtualisation/google-compute-image.nix
  7. +74 −3 nixos/tests/rspamd.nix
  8. +2 −2 pkgs/applications/audio/lollypop/default.nix
  9. +2 −2 pkgs/applications/display-managers/lightdm-mini-greeter/default.nix
  10. +8 −7 pkgs/applications/graphics/shutter/default.nix
  11. +4 −1 pkgs/applications/misc/alacritty/default.nix
  12. +2 −2 pkgs/applications/misc/tootle/default.nix
  13. +233 −233 pkgs/applications/networking/mailreaders/thunderbird-bin/release_sources.nix
  14. +2 −10 pkgs/applications/networking/mailreaders/thunderbird/default.nix
  15. +3 −3 pkgs/applications/science/electronics/librepcb/default.nix
  16. +1 −0 pkgs/applications/science/logic/coq/default.nix
  17. +2 −2 pkgs/applications/science/logic/yices/default.nix
  18. +2 −2 pkgs/desktops/maxx/default.nix
  19. +0 −194 pkgs/development/compilers/ghc/7.10.3.nix
  20. +0 −201 pkgs/development/compilers/ghc/8.0.2.nix
  21. +0 −247 pkgs/development/compilers/ghc/8.4.3.nix
  22. +0 −23 pkgs/development/compilers/ghc/ghc-8.0.2-no-cpp-warnings.patch
  23. +0 −54 pkgs/development/compilers/ghc/ghc-gold-linker.patch
  24. +0 −18 pkgs/development/compilers/ghc/ghc-no-madv-free.patch
  25. +0 −27 pkgs/development/compilers/ghc/relocation.patch
  26. +0 −104 pkgs/development/compilers/ghcjs/7.10/boot.patch
  27. +0 −50 pkgs/development/compilers/ghcjs/7.10/default.nix
  28. +0 −7 pkgs/development/compilers/ghcjs/7.10/shims.nix
  29. +0 −344 pkgs/development/compilers/ghcjs/7.10/stage2.nix
  30. +0 −86 pkgs/development/compilers/ghcjs/8.0/boot.patch
  31. +0 −50 pkgs/development/compilers/ghcjs/8.0/default.nix
  32. +0 −7 pkgs/development/compilers/ghcjs/8.0/shims.nix
  33. +0 −545 pkgs/development/compilers/ghcjs/8.0/stage2.nix
  34. +48 −0 pkgs/development/compilers/x11basic/default.nix
  35. +0 −239 pkgs/development/haskell-modules/configuration-ghc-7.10.x.nix
  36. +0 −91 pkgs/development/haskell-modules/configuration-ghc-8.0.x.nix
  37. +0 −59 pkgs/development/haskell-modules/configuration-halvm-2.4.0.nix
  38. +15 −12 pkgs/development/libraries/folly/default.nix
  39. +1 −1 pkgs/development/libraries/grpc/default.nix
  40. +1 −1 pkgs/development/libraries/kerberos/krb5.nix
  41. +3 −3 pkgs/development/libraries/physics/yoda/default.nix
  42. +28 −0 pkgs/development/python-modules/broadlink/default.nix
  43. +26 −0 pkgs/development/python-modules/fastpbkdf2/default.nix
  44. +4 −0 pkgs/development/tools/ansible-lint/default.nix
  45. +2 −2 pkgs/os-specific/linux/ati-drivers/default.nix
  46. +32 −0 pkgs/os-specific/linux/bpftrace/bcc-source.patch
  47. +57 −0 pkgs/os-specific/linux/bpftrace/default.nix
  48. +73 −0 pkgs/os-specific/linux/bpftrace/disable-gtests.patch
  49. +0 −34 pkgs/os-specific/linux/kernel/linux-beagleboard.nix
  50. +4 −4 pkgs/os-specific/linux/nvidia-x11/default.nix
  51. +0 −5 pkgs/servers/consul/Gemfile
  52. +0 −25 pkgs/servers/consul/Gemfile.lock
  53. +12 −7 pkgs/servers/consul/default.nix
  54. +0 −62 pkgs/servers/consul/gemset.nix
  55. +0 −17 pkgs/servers/consul/ui-no-bundle-exec.patch
  56. +0 −41 pkgs/servers/consul/ui.nix
  57. +3 −3 pkgs/servers/home-assistant/component-packages.nix
  58. +2 −2 pkgs/servers/home-assistant/default.nix
  59. +2 −2 pkgs/servers/home-assistant/frontend.nix
  60. +3 −3 pkgs/servers/sql/postgresql/pg_hll/default.nix
  61. +27 −27 pkgs/servers/sql/postgresql/pg_repack/default.nix
  62. +4 −4 pkgs/servers/sql/postgresql/timescaledb/default.nix
  63. +2 −2 pkgs/servers/sql/postgresql/topn/default.nix
  64. +5 −5 pkgs/servers/sql/postgresql/tsearch_extras/default.nix
  65. +2 −2 pkgs/shells/zsh/zsh-git-prompt/default.nix
  66. +12 −1 pkgs/stdenv/generic/make-derivation.nix
  67. +10 −5 pkgs/tools/admin/ansible/default.nix
  68. +2 −2 pkgs/tools/networking/i2pd/default.nix
  69. +2 −2 pkgs/tools/security/tor/default.nix
  70. +12 −17 pkgs/top-level/all-packages.nix
  71. +5 −5 pkgs/top-level/coq-packages.nix
  72. +0 −40 pkgs/top-level/haskell-packages.nix
  73. +4 −0 pkgs/top-level/python-packages.nix
  74. +1 −1 pkgs/top-level/release-cross.nix
8 changes: 8 additions & 0 deletions nixos/doc/manual/release-notes/rl-1903.xml
Original file line number Diff line number Diff line change
@@ -164,6 +164,14 @@
has been renamed to <varname>postgresql_9_6</varname>.
</para>
</listitem>
<listitem>
<para>
Package <literal>consul-ui</literal> and passthrough <literal>consul.ui</literal> have been removed.
The package <literal>consul</literal> now uses upstream releases that vendor the UI into the binary.
See <link xlink:href="https://github.com/NixOS/nixpkgs/pull/48714#issuecomment-433454834">#48714</link>
for details.
</para>
</listitem>
<listitem>
<para>
Slurm introduces the new option
79 changes: 77 additions & 2 deletions nixos/modules/services/mail/rspamd.nix
Original file line number Diff line number Diff line change
@@ -127,11 +127,15 @@ let
options {
pidfile = "$RUNDIR/rspamd.pid";
.include "$CONFDIR/options.inc"
.include(try=true; priority=1,duplicate=merge) "$LOCAL_CONFDIR/local.d/options.inc"
.include(try=true; priority=10) "$LOCAL_CONFDIR/override.d/options.inc"
}
logging {
type = "syslog";
.include "$CONFDIR/logging.inc"
.include(try=true; priority=1,duplicate=merge) "$LOCAL_CONFDIR/local.d/logging.inc"
.include(try=true; priority=10) "$LOCAL_CONFDIR/override.d/logging.inc"
}
${concatStringsSep "\n" (mapAttrsToList (name: value: ''
@@ -149,6 +153,41 @@ let
${cfg.extraConfig}
'';

rspamdDir = pkgs.linkFarm "etc-rspamd-dir" (
(mapAttrsToList (name: file: { name = "local.d/${name}"; path = file.source; }) cfg.locals) ++
(mapAttrsToList (name: file: { name = "override.d/${name}"; path = file.source; }) cfg.overrides) ++
(optional (cfg.localLuaRules != null) { name = "rspamd.local.lua"; path = cfg.localLuaRules; }) ++
[ { name = "rspamd.conf"; path = rspamdConfFile; } ]
);

configFileModule = prefix: { name, config, ... }: {
options = {
enable = mkOption {
type = types.bool;
default = true;
description = ''
Whether this file ${prefix} should be generated. This
option allows specific ${prefix} files to be disabled.
'';
};

text = mkOption {
default = null;
type = types.nullOr types.lines;
description = "Text of the file.";
};

source = mkOption {
type = types.path;
description = "Path of the source file.";
};
};
config = {
source = mkIf (config.text != null) (
let name' = "rspamd-${prefix}-" + baseNameOf name;
in mkDefault (pkgs.writeText name' config.text));
};
};
in

{
@@ -167,6 +206,41 @@ in
description = "Whether to run the rspamd daemon in debug mode.";
};

locals = mkOption {
type = with types; loaOf (submodule (configFileModule "locals"));
default = {};
description = ''
Local configuration files, written into <filename>/etc/rspamd/local.d/{name}</filename>.
'';
example = literalExample ''
{ "redis.conf".source = "/nix/store/.../etc/dir/redis.conf";
"arc.conf".text = "allow_envfrom_empty = true;";
}
'';
};

overrides = mkOption {
type = with types; loaOf (submodule (configFileModule "overrides"));
default = {};
description = ''
Overridden configuration files, written into <filename>/etc/rspamd/override.d/{name}</filename>.
'';
example = literalExample ''
{ "redis.conf".source = "/nix/store/.../etc/dir/redis.conf";
"arc.conf".text = "allow_envfrom_empty = true;";
}
'';
};

localLuaRules = mkOption {
default = null;
type = types.nullOr types.path;
description = ''
Path of file to link to <filename>/etc/rspamd/rspamd.local.lua</filename> for local
rules written in Lua
'';
};

workers = mkOption {
type = with types; attrsOf (submodule workerOpts);
description = ''
@@ -242,16 +316,17 @@ in
gid = config.ids.gids.rspamd;
};

environment.etc."rspamd.conf".source = rspamdConfFile;
environment.etc."rspamd".source = rspamdDir;

systemd.services.rspamd = {
description = "Rspamd Service";

wantedBy = [ "multi-user.target" ];
after = [ "network.target" ];
restartTriggers = [ rspamdDir ];

serviceConfig = {
ExecStart = "${pkgs.rspamd}/bin/rspamd ${optionalString cfg.debug "-d"} --user=${cfg.user} --group=${cfg.group} --pid=/run/rspamd.pid -c ${rspamdConfFile} -f";
ExecStart = "${pkgs.rspamd}/bin/rspamd ${optionalString cfg.debug "-d"} --user=${cfg.user} --group=${cfg.group} --pid=/run/rspamd.pid -c /etc/rspamd/rspamd.conf -f";
Restart = "always";
RuntimeDirectory = "rspamd";
PrivateTmp = true;
7 changes: 4 additions & 3 deletions nixos/modules/services/misc/gitlab.nix
Original file line number Diff line number Diff line change
@@ -552,10 +552,9 @@ in {
gnupg
];
preStart = ''
${pkgs.openssl}/bin/openssl rand -hex 32 > ${cfg.statePath}/config/gitlab_shell_secret
cp -rf ${cfg.packages.gitlab}/share/gitlab/db/* ${cfg.statePath}/db
cp -rf ${cfg.packages.gitlab}/share/gitlab/config.dist/* ${cfg.statePath}/config
rm -rf ${cfg.statePath}/config
mkdir ${cfg.statePath}/config
if [ -e ${cfg.statePath}/lib ]; then
rm ${cfg.statePath}/lib
fi
@@ -569,6 +568,8 @@ in {
ln -sf ${smtpSettings} ${cfg.statePath}/config/initializers/smtp_settings.rb
''}
cp ${cfg.packages.gitlab}/share/gitlab/VERSION ${cfg.statePath}/VERSION
cp -rf ${cfg.packages.gitlab}/share/gitlab/config.dist/* ${cfg.statePath}/config
${pkgs.openssl}/bin/openssl rand -hex 32 > ${cfg.statePath}/config/gitlab_shell_secret
# JSON is a subset of YAML
ln -sf ${pkgs.writeText "gitlab.yml" (builtins.toJSON gitlabConfig)} ${cfg.statePath}/config/gitlab.yml
7 changes: 4 additions & 3 deletions nixos/modules/services/networking/consul.nix
Original file line number Diff line number Diff line change
@@ -6,9 +6,10 @@ let
dataDir = "/var/lib/consul";
cfg = config.services.consul;

configOptions = { data_dir = dataDir; } //
(if cfg.webUi then { ui_dir = "${cfg.package.ui}"; } else { }) //
cfg.extraConfig;
configOptions = {
data_dir = dataDir;
ui = cfg.webUi;
} // cfg.extraConfig;

configFiles = [ "/etc/consul.json" "/etc/consul-addrs.json" ]
++ cfg.extraConfigFiles;
2 changes: 1 addition & 1 deletion nixos/modules/virtualisation/amazon-image.nix
Original file line number Diff line number Diff line change
@@ -53,7 +53,7 @@ let cfg = config.ec2; in
# Mount all formatted ephemeral disks and activate all swap devices.
# We cannot do this with the ‘fileSystems’ and ‘swapDevices’ options
# because the set of devices is dependent on the instance type
# (e.g. "m1.large" has one ephemeral filesystem and one swap device,
# (e.g. "m1.small" has one ephemeral filesystem and one swap device,
# while "m1.large" has two ephemeral filesystems and no swap
# devices). Also, put /tmp and /var on /disk0, since it has a lot
# more space than the root device. Similarly, "move" /nix to /disk0
1 change: 0 additions & 1 deletion nixos/modules/virtualisation/google-compute-image.nix
Original file line number Diff line number Diff line change
@@ -144,7 +144,6 @@ in
path = with pkgs; [ iproute ];
serviceConfig = {
ExecStart = "${gce}/bin/google_network_daemon --debug";
Type = "oneshot";
};
};

77 changes: 74 additions & 3 deletions nixos/tests/rspamd.nix
Original file line number Diff line number Diff line change
@@ -27,7 +27,7 @@ let
$machine->succeed("id \"rspamd\" >/dev/null");
${checkSocket "/run/rspamd/rspamd.sock" "rspamd" "rspamd" "660" }
sleep 10;
$machine->log($machine->succeed("cat /etc/rspamd.conf"));
$machine->log($machine->succeed("cat /etc/rspamd/rspamd.conf"));
$machine->log($machine->succeed("systemctl cat rspamd.service"));
$machine->log($machine->succeed("curl http://localhost:11334/auth"));
$machine->log($machine->succeed("curl http://127.0.0.1:11334/auth"));
@@ -55,7 +55,7 @@ in
$machine->waitForFile("/run/rspamd.sock");
${checkSocket "/run/rspamd.sock" "root" "root" "600" }
${checkSocket "/run/rspamd-worker.sock" "root" "root" "666" }
$machine->log($machine->succeed("cat /etc/rspamd.conf"));
$machine->log($machine->succeed("cat /etc/rspamd/rspamd.conf"));
$machine->log($machine->succeed("rspamc -h /run/rspamd-worker.sock stat"));
$machine->log($machine->succeed("curl --unix-socket /run/rspamd-worker.sock http://localhost/ping"));
'';
@@ -86,9 +86,80 @@ in
$machine->waitForFile("/run/rspamd.sock");
${checkSocket "/run/rspamd.sock" "root" "root" "600" }
${checkSocket "/run/rspamd-worker.sock" "root" "root" "666" }
$machine->log($machine->succeed("cat /etc/rspamd.conf"));
$machine->log($machine->succeed("cat /etc/rspamd/rspamd.conf"));
$machine->log($machine->succeed("rspamc -h /run/rspamd-worker.sock stat"));
$machine->log($machine->succeed("curl --unix-socket /run/rspamd-worker.sock http://localhost/ping"));
'';
};
customLuaRules = makeTest {
name = "rspamd-custom-lua-rules";
machine = {
environment.etc."tests/no-muh.eml".text = ''
From: Sheep1<bah@example.com>
To: Sheep2<mah@example.com>
Subject: Evil cows
I find cows to be evil don't you?
'';
environment.etc."tests/muh.eml".text = ''
From: Cow<cow@example.com>
To: Sheep2<mah@example.com>
Subject: Evil cows
Cows are majestic creatures don't Muh agree?
'';
services.rspamd = {
enable = true;
locals."groups.conf".text = ''
group "cows" {
symbol {
NO_MUH = {
weight = 1.0;
description = "Mails should not muh";
}
}
}
'';
localLuaRules = pkgs.writeText "rspamd.local.lua" ''
local rspamd_logger = require "rspamd_logger"
rspamd_config.NO_MUH = {
callback = function (task)
local parts = task:get_text_parts()
if parts then
for _,part in ipairs(parts) do
local content = tostring(part:get_content())
rspamd_logger.infox(rspamd_config, 'Found content %s', content)
local found = string.find(content, "Muh");
rspamd_logger.infox(rspamd_config, 'Found muh %s', tostring(found))
if found then
return true
end
end
end
return false
end,
score = 5.0,
description = 'Allow no cows',
group = "cows",
}
rspamd_logger.infox(rspamd_config, 'Work dammit!!!')
'';
};
};
testScript = ''
${initMachine}
$machine->waitForOpenPort(11334);
$machine->log($machine->succeed("cat /etc/rspamd/rspamd.conf"));
$machine->log($machine->succeed("cat /etc/rspamd/rspamd.local.lua"));
$machine->log($machine->succeed("cat /etc/rspamd/local.d/groups.conf"));
${checkSocket "/run/rspamd/rspamd.sock" "rspamd" "rspamd" "660" }
$machine->log($machine->succeed("curl --unix-socket /run/rspamd/rspamd.sock http://localhost/ping"));
$machine->log($machine->succeed("rspamc -h 127.0.0.1:11334 stat"));
$machine->log($machine->succeed("cat /etc/tests/no-muh.eml | rspamc -h 127.0.0.1:11334"));
$machine->log($machine->succeed("cat /etc/tests/muh.eml | rspamc -h 127.0.0.1:11334 symbols"));
$machine->waitUntilSucceeds("journalctl -u rspamd | grep -i muh >&2");
$machine->log($machine->fail("cat /etc/tests/no-muh.eml | rspamc -h 127.0.0.1:11334 symbols | grep NO_MUH"));
$machine->log($machine->succeed("cat /etc/tests/muh.eml | rspamc -h 127.0.0.1:11334 symbols | grep NO_MUH"));
'';
};
}
4 changes: 2 additions & 2 deletions pkgs/applications/audio/lollypop/default.nix
Original file line number Diff line number Diff line change
@@ -4,7 +4,7 @@
, gobjectIntrospection, wrapGAppsHook }:

python3.pkgs.buildPythonApplication rec {
version = "0.9.607";
version = "0.9.610";
name = "lollypop-${version}";

format = "other";
@@ -14,7 +14,7 @@ python3.pkgs.buildPythonApplication rec {
url = "https://gitlab.gnome.org/World/lollypop";
rev = "refs/tags/${version}";
fetchSubmodules = true;
sha256 = "04giwp4i7j1qad41fiqlb8s3w03f1ww0p2mhi8n162sajnflr1rd";
sha256 = "0nn4cjw0c2ysd3y2a7l08ybcd21v993wsz99f7w0881jhws3q5p4";
};

nativeBuildInputs = with python3.pkgs; [
Original file line number Diff line number Diff line change
@@ -2,13 +2,13 @@

stdenv.mkDerivation rec {
name = "lightdm-mini-greeter-${version}";
version = "0.3.3";
version = "0.3.4";

src = fetchFromGitHub {
owner = "prikhi";
repo = "lightdm-mini-greeter";
rev = version;
sha256 = "1xlj5wqagp765rqw40ci4wir21qwyszasynk82x8308k5d3asvwb";
sha256 = "1qi0bsqi8z2zv3303ww0kd7bciz6qx8na5bkvgrqlwyvq31czai5";
};

nativeBuildInputs = [ autoreconfHook pkgconfig ];
15 changes: 8 additions & 7 deletions pkgs/applications/graphics/shutter/default.nix
Original file line number Diff line number Diff line change
@@ -1,27 +1,28 @@
{ stdenv, fetchurl, perl, perlPackages, makeWrapper, imagemagick, gdk_pixbuf, librsvg
, hicolor-icon-theme
, hicolor-icon-theme, procps
}:

let
perlModules = with perlPackages;
[ Gnome2 Gnome2Canvas Gtk2 Glib Pango Gnome2VFS Gnome2Wnck Gtk2ImageView
Gtk2Unique FileWhich FileCopyRecursive XMLSimple NetDBus XMLTwig
Gtk2Unique FileBaseDir FileWhich FileCopyRecursive XMLSimple NetDBus XMLTwig
XMLParser HTTPMessage ProcSimple SortNaturally LocaleGettext
ProcProcessTable URI ImageExifTool Gtk2AppIndicator LWP JSON
PerlMagick WWWMechanize HTTPDate HTMLForm HTMLParser HTMLTagset JSONXS
PerlMagick WWWMechanize HTTPDate HTMLForm HTMLParser HTMLTagset JSONMaybeXS
commonsense HTTPCookies NetOAuth PathClass GooCanvas X11Protocol Cairo
EncodeLocale TryTiny TypesSerialiser LWPMediaTypes
];
in
stdenv.mkDerivation rec {
name = "shutter-0.94";
name = "shutter-0.94.2";

src = fetchurl {
url = "https://launchpad.net/shutter/0.9x/0.94/+download/shutter-0.94.tar.gz";
sha256 = "943152cdf9e1b2096d38e3da9622d8bf97956a08eda747c3e7fcc564a3f0f40d";
url = "https://launchpad.net/shutter/0.9x/0.94.2/+download/shutter-0.94.2.tar.gz";
sha256 = "0mas7npm935j4rhqqjn226822s9sa4bsxrkp0b5fjj3z096k6vw0";
};

buildInputs = [ perl makeWrapper gdk_pixbuf librsvg ] ++ perlModules;
nativeBuildInputs = [ makeWrapper ];
buildInputs = [ perl procps gdk_pixbuf librsvg ] ++ perlModules;

installPhase = ''
mkdir -p "$out"
5 changes: 4 additions & 1 deletion pkgs/applications/misc/alacritty/default.nix
Original file line number Diff line number Diff line change
@@ -73,7 +73,10 @@ in buildRustPackage rec {
buildInputs = rpathLibs
++ lib.optionals stdenv.isDarwin darwinFrameworks;

outputs = [ "out" "terminfo" ];
outputs = [ "out" "terminfo" ];

# https://github.com/NixOS/nixpkgs/issues/49693
doCheck = !stdenv.isDarwin;

postPatch = ''
substituteInPlace copypasta/src/x11.rs \
4 changes: 2 additions & 2 deletions pkgs/applications/misc/tootle/default.nix
Original file line number Diff line number Diff line change
@@ -7,15 +7,15 @@

let
pname = "tootle";
version = "0.1.5";
version = "0.2.0";
in stdenv.mkDerivation rec {
name = "${pname}-${version}";

src = fetchFromGitHub {
owner = "bleakgrey";
repo = pname;
rev = version;
sha256 = "022h1rh1jk3m1f9al0s1rylmnqnkydyc81idfc8jf1g0frnvn5i6";
sha256 = "1z3wyx316nns6gi7vlvcfmalhvxncmvcmmlgclbv6b6hwl5x2ysi";
};

nativeBuildInputs = [ meson ninja pkgconfig python3 vala gobjectIntrospection wrapGAppsHook ];
Loading