Skip to content
This repository was archived by the owner on Apr 12, 2021. It is now read-only.
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-channels
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 1d65e473e705
Choose a base ref
...
head repository: NixOS/nixpkgs-channels
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: e502c72773e5
Choose a head ref

Commits on Sep 25, 2018

  1. fox: mark broken on darwin

        Undefined symbols for architecture x86_64:
          "_MPCreateSemaphore", referenced from:
              FX::FXSemaphore::FXSemaphore(int) in FXThread.o
              FX::FXSemaphore::FXSemaphore(int) in FXThread.o
          "_MPDeleteSemaphore", referenced from:
              FX::FXSemaphore::~FXSemaphore() in FXThread.o
              FX::FXSemaphore::~FXSemaphore() in FXThread.o
          "_MPSignalSemaphore", referenced from:
              FX::FXSemaphore::post() in FXThread.o
          "_MPWaitOnSemaphore", referenced from:
              FX::FXSemaphore::wait() in FXThread.o
              FX::FXSemaphore::trywait() in FXThread.o
        ld: symbol(s) not found for architecture x86_64
    
    /cc ZHF #45961
    LnL7 committed Sep 25, 2018
    Copy the full SHA
    6390b8b View commit details
  2. flpsed: mark linux only

    Doesn't build on darwin and probably other platforms.
    
        GsWidget.H:26:3: error: 'Atom' does not name a type; did you mean 'tm'?
           Atom atoms[5];
           ^~~~
           tm
        GsWidget.cxx: In member function 'void GsWidget::setProps()':
        GsWidget.cxx:47:2: error: 'atoms' was not declared in this scope
          atoms[0] = XInternAtom(fl_display,"GHOSTVIEW" , false);
          ^~~~~
    
    /cc ZHF #45961
    LnL7 committed Sep 25, 2018
    Copy the full SHA
    cd78d0c View commit details
  3. freedroidrpg: don't build on hydra

    Similar to some other builds, sdl-config gets stuck and times out.
    
        checking for sdl-config... /nix/store/q2hm1ka0qxs2gv5bmrxj7j80lygk4b5z-SDL-1.2.15-dev/bin/sdl-config
        building of '/nix/store/m2d7v0n5hd2498vfxp18i37p7r1lf76p-freedroidrpg-0.16.1' timed out after 7200 seconds of silence
    
    /cc ZHF #45961
    LnL7 committed Sep 25, 2018
    Copy the full SHA
    9b99819 View commit details

Commits on Sep 27, 2018

  1. ranger: fix out-of-the-box previews

    I'm guessing this became commented out by default at some point.
    alyssais committed Sep 27, 2018
    Copy the full SHA
    4f14cce View commit details
  2. Copy the full SHA
    d152089 View commit details

Commits on Sep 28, 2018

  1. Copy the full SHA
    50636fd View commit details
  2. Copy the full SHA
    f14d4ba View commit details
  3. systemd: Replace meta.available checks

    This sort of code breaks config.{allowBroken, allowUnsupportedSystem} =
    true by making them do unpredictable things.
    dezgeg committed Sep 28, 2018
    Copy the full SHA
    fe7919f View commit details
  4. nix: Replace meta.available checks

    This sort of code breaks config.{allowBroken, allowUnsupportedSystem} =
    true by making them do unpredictable things.
    dezgeg committed Sep 28, 2018
    Copy the full SHA
    cdeafe7 View commit details
  5. apparmor: Replace meta.available checks

    This sort of code breaks config.{allowBroken, allowUnsupportedSystem} =
    true by making them do unpredictable things.
    dezgeg committed Sep 28, 2018
    Copy the full SHA
    50d0360 View commit details
  6. treewide: Replace meta.available checks in shouldUsePackages copypasta

    This reverts commit 79d8353.
    
    This sort of code breaks config.{allowBroken, allowUnsupportedSystem} =
    true by making them do unpredictable things.
    dezgeg committed Sep 28, 2018
    Copy the full SHA
    5e84926 View commit details
  7. ghc: Replace meta.available checks for enableIntegerSimple

    This sort of code breaks config.{allowBroken, allowUnsupportedSystem} =
    true by making them do unpredictable things.
    dezgeg committed Sep 28, 2018
    Copy the full SHA
    f4dd2fe View commit details
  8. nixos/kexec: Replace meta.available checks

    This sort of code breaks config.{allowBroken, allowUnsupportedSystem} =
    true by making them do unpredictable things.
    dezgeg committed Sep 28, 2018
    Copy the full SHA
    599c4df View commit details
  9. Merge pull request #47459 from Gerschtli/update/flask-sqlalchemy

    pythonPackages.flask_sqlalchemy: 2.1 -> 2.3.2
    lsix authored Sep 28, 2018
    Copy the full SHA
    6ef8d96 View commit details
  10. Merge pull request #47460 from Gerschtli/add/flask-jwt-extended

    pythonPackages.flask-jwt-extended: init at 3.13.1
    lsix authored Sep 28, 2018
    Copy the full SHA
    eabaf4e View commit details
  11. Copy the full SHA
    82cafa4 View commit details
  12. nixos/kexec: Fix typo in meta.platforms

    Evaluation error introduced in 599c4df.
    
    There is only a "platformS" attribute in kexectools.meta, so let's use
    this and from the code in the kexec module it operates on a list,
    matching the corresponding platforms, so this seems to be the attribute
    the original author intended.
    
    Tested by building nixos/tests/kexec.nix on x86_64-linux and while it
    evaluates now, the test still fails by timing out shortly after the
    kexec:
    
    machine: waiting for the VM to finish booting
    machine# Cannot find the ESP partition mount point.
    
    This however seems to be an unrelated issue and was also the case before
    the commit mentioned above.
    
    Signed-off-by: aszlig <aszlig@nix.build>
    Cc: @edolstra, @dezgeg
    aszlig committed Sep 28, 2018
    Copy the full SHA
    fd8bca4 View commit details
  13. ghcjs-*: Expose the version of GHC used

    This is more meaningful than the GHCJS version for most tasks.
    Ericson2314 committed Sep 28, 2018
    Copy the full SHA
    d892f1a View commit details
  14. Merge pull request #47487 from obsidiansystems/ghcjs-ghc-version

    ghcjs-*: Expose the version of GHC used
    Ericson2314 authored Sep 28, 2018
    Copy the full SHA
    6514142 View commit details
  15. Copy the full SHA
    776e6da View commit details
  16. google-chrome: use patchelfUnstable for nicer static binary handling

    Current/previous behavior is the patchelf process aborting after
    a somewhat unfriendly message about an assertion failure.
    dtzWill committed Sep 28, 2018
    Copy the full SHA
    196c405 View commit details
  17. tree-wide: patchelf used during build -> nativeBuildInputs

    In a few cases it wasn't clear so I left them as-is.
    
    While visiting these moved other things to nativeBuildInputs
    when it was clear they were one of these cases:
    
    * makeWrapper
    * archive utilities (in order to unpack src)
      * a few of these might no longer be needed but leaving for another day
    dtzWill committed Sep 28, 2018
    Copy the full SHA
    eb91037 View commit details
  18. nixos/rspamd: Remove non-working socket activation

    The socket activation I added to the rspamd module doesn't actually work
    and can't be made to work without changes to rspamd.
    
    See: #47421
    See: rspamd/rspamd#2035
    griff committed Sep 28, 2018
    Copy the full SHA
    783a58f View commit details
  19. kustomize: 1.0.4 -> 1.0.8 (#47489)

    - change the GOPATH to `sigs.k8s.io/kustomize`
    - add some buildtags to get a better `kustomize version`
    
    Signed-off-by: Vincent Demeester <vincent@sbr.pm>
    vdemeester authored and xeji committed Sep 28, 2018
    Copy the full SHA
    7b87b70 View commit details
  20. gauge: 1.0.0 -> 1.0.2 (#47465)

    Signed-off-by: Vincent Demeester <vincent@sbr.pm>
    vdemeester authored and xeji committed Sep 28, 2018
    Copy the full SHA
    2e17793 View commit details
  21. delve: 1.0.0 -> 1.1.0 (#47463)

    Signed-off-by: Vincent Demeester <vincent@sbr.pm>
    vdemeester authored and xeji committed Sep 28, 2018
    Copy the full SHA
    2fc7b67 View commit details
  22. go-symbols: unstable-2017-02-06 -> unstable-2018-05-23 (#47468)

    Signed-off-by: Vincent Demeester <vincent@sbr.pm>
    vdemeester authored and xeji committed Sep 28, 2018
    Copy the full SHA
    93e26ba View commit details
  23. dotnet-sdk: 2.1.401 -> 2.1.402 (#47469)

    baracoder authored and xeji committed Sep 28, 2018
    Copy the full SHA
    2c6e7ae View commit details
  24. gopkgs: unstable-2017-12-29 -> 2.0.1 (#47464)

    Signed-off-by: Vincent Demeester <vincent@sbr.pm>
    vdemeester authored and xeji committed Sep 28, 2018
    Copy the full SHA
    a87026a View commit details
  25. kail: 0.6.0 -> 0.7.0 (#47472)

    Signed-off-by: Vincent Demeester <vincent@sbr.pm>
    vdemeester authored and xeji committed Sep 28, 2018
    Copy the full SHA
    83cf856 View commit details
  26. drone: 0.8.5 -> 0.8.6 (#47470)

    Signed-off-by: Vincent Demeester <vincent@sbr.pm>
    vdemeester authored and xeji committed Sep 28, 2018
    Copy the full SHA
    3decb75 View commit details
  27. gomodifytags: unstable-2017-12-14 -> unstable-2018-09-14 (#47467)

    gomodifytags: unstable-2017-12-14 -> unstable-2018-09-14
    vdemeester authored and xeji committed Sep 28, 2018
    Copy the full SHA
    f51a090 View commit details
  28. Copy the full SHA
    a006e2f View commit details
  29. vndr: 20171005 -> unstable-2018-06-23 (#47466)

    Signed-off-by: Vincent Demeester <vincent@sbr.pm>
    vdemeester authored and xeji committed Sep 28, 2018
    Copy the full SHA
    5b39fd6 View commit details
  30. Merge pull request #47432 from alyssais/ranger

    ranger: syntax highlight previews by default
    xeji authored Sep 28, 2018
    Copy the full SHA
    e72de08 View commit details
  31. Copy the full SHA
    206e58b View commit details
  32. yarn: 1.9.4 -> 1.10.1 (#47405)

    screendriver authored and xeji committed Sep 28, 2018
    Copy the full SHA
    8172085 View commit details
  33. deepin.dtkwidget: 2.0.9.3 -> 2.0.9.4 (#47086)

    Semi-automatic update generated by
    https://github.com/ryantm/nixpkgs-update tools. This update was made
    based on information from
    https://repology.org/metapackage/dtkwidget/versions
    r-ryantm authored and xeji committed Sep 28, 2018
    Copy the full SHA
    de81064 View commit details
  34. deepin.deepin-menu: 3.3.10 -> 3.4.0 (#47084)

    Semi-automatic update generated by
    https://github.com/ryantm/nixpkgs-update tools. This update was made
    based on information from
    https://repology.org/metapackage/deepin-menu/versions
    r-ryantm authored and xeji committed Sep 28, 2018
    Copy the full SHA
    4b8aef5 View commit details
  35. fping: 4.0 -> 4.1 (#47054)

    Semi-automatic update generated by
    https://github.com/ryantm/nixpkgs-update tools. This update was made
    based on information from
    https://repology.org/metapackage/fping/versions
    r-ryantm authored and xeji committed Sep 28, 2018
    Copy the full SHA
    a840005 View commit details
  36. googler: 3.6 -> 3.7 (#47044)

    Semi-automatic update generated by
    https://github.com/ryantm/nixpkgs-update tools. This update was made
    based on information from
    https://repology.org/metapackage/googler/versions
    r-ryantm authored and xeji committed Sep 28, 2018
    Copy the full SHA
    b3b4573 View commit details
  37. folly: 2018.08.13.00 -> 2018.08.27.00 (#46282)

    Semi-automatic update generated by
    https://github.com/ryantm/nixpkgs-update tools. This update was made
    based on information from
    https://repology.org/metapackage/folly/versions
    r-ryantm authored and xeji committed Sep 28, 2018
    Copy the full SHA
    0b324f3 View commit details
  38. crawl: 0.22.0 -> 0.22.1 (#46952)

    Semi-automatic update generated by
    https://github.com/ryantm/nixpkgs-update tools. This update was made
    based on information from
    https://repology.org/metapackage/crawl/versions
    r-ryantm authored and xeji committed Sep 28, 2018
    Copy the full SHA
    b96e525 View commit details
  39. workrave: 1.10.20 -> 1.10.21 (#46930)

    Semi-automatic update generated by
    https://github.com/ryantm/nixpkgs-update tools. This update was made
    based on information from
    https://repology.org/metapackage/workrave/versions
    r-ryantm authored and xeji committed Sep 28, 2018
    Copy the full SHA
    1ff5b13 View commit details
  40. yank: 0.8.3 -> 1.0.0 (#46926)

    Semi-automatic update generated by
    https://github.com/ryantm/nixpkgs-update tools. This update was made
    based on information from
    https://repology.org/metapackage/yank/versions
    r-ryantm authored and xeji committed Sep 28, 2018
    Copy the full SHA
    5bfe657 View commit details
  41. zxcvbn-c: 2.3 -> 2.4 (#46925)

    Semi-automatic update generated by
    https://github.com/ryantm/nixpkgs-update tools. This update was made
    based on information from
    https://repology.org/metapackage/zxcvbn-c/versions
    r-ryantm authored and xeji committed Sep 28, 2018
    Copy the full SHA
    b0e981d View commit details
  42. Merge pull request #47449 from griff/remove-rspamd-socket-activation

    nixos/rspamd: Remove non-working socket activation
    xeji authored Sep 28, 2018
    Copy the full SHA
    f7c434b View commit details
  43. otter-browser: 0.9.96 -> 0.9.99.3 (#46217)

    Semi-automatic update generated by
    https://github.com/ryantm/nixpkgs-update tools. This update was made
    based on information from
    otter-browser
    r-ryantm authored and xeji committed Sep 28, 2018
    Copy the full SHA
    42af103 View commit details
  44. nss_pam_ldapd: 0.9.7 -> 0.9.10 (#46226)

    Semi-automatic update generated by
    https://github.com/ryantm/nixpkgs-update tools. This update was made
    based on information from
    nss-pam-ldapd
    r-ryantm authored and xeji committed Sep 28, 2018
    Copy the full SHA
    e799f39 View commit details
  45. openimageio: 1.8.9 -> 1.8.14 (#46232)

    Semi-automatic update generated by
    https://github.com/ryantm/nixpkgs-update tools. This update was made
    based on information from
    openimageio
    r-ryantm authored and xeji committed Sep 28, 2018
    Copy the full SHA
    ee8f6be View commit details
Showing with 483 additions and 453 deletions.
  1. +1 −1 nixos/modules/programs/zsh/zsh.nix
  2. +7 −77 nixos/modules/services/mail/rspamd.nix
  3. +1 −1 nixos/modules/system/boot/kexec.nix
  4. +4 −50 nixos/tests/rspamd.nix
  5. +2 −2 pkgs/applications/display-managers/lightdm/gtk-greeter.nix
  6. +2 −2 pkgs/applications/editors/flpsed/default.nix
  7. +1 −1 pkgs/applications/editors/jetbrains/common.nix
  8. +2 −2 pkgs/applications/graphics/kgraphviewer/default.nix
  9. +2 −2 pkgs/applications/graphics/openimageio/default.nix
  10. +2 −2 pkgs/applications/misc/chirp/default.nix
  11. +2 −2 pkgs/applications/misc/googler/default.nix
  12. +2 −2 pkgs/applications/misc/gpxsee/default.nix
  13. +1 −1 pkgs/applications/misc/ipmiview/default.nix
  14. +2 −2 pkgs/applications/misc/mediainfo-gui/default.nix
  15. +44 −0 pkgs/applications/misc/neap/default.nix
  16. +8 −3 pkgs/applications/misc/ranger/default.nix
  17. +2 −2 pkgs/applications/misc/workrave/default.nix
  18. +1 −2 pkgs/applications/networking/browsers/google-chrome/default.nix
  19. +2 −2 pkgs/applications/networking/browsers/otter/default.nix
  20. +2 −2 pkgs/applications/networking/flexget/default.nix
  21. +1 −1 pkgs/applications/networking/instant-messengers/bluejeans/default.nix
  22. +2 −1 pkgs/applications/networking/mailreaders/inboxer/default.nix
  23. +2 −2 pkgs/applications/networking/seafile-client/default.nix
  24. +1 −1 pkgs/applications/networking/spideroak/default.nix
  25. +2 −2 pkgs/applications/science/electronics/gtkwave/default.nix
  26. +2 −1 pkgs/applications/science/logic/tptp/default.nix
  27. +2 −2 pkgs/applications/science/math/gmsh/default.nix
  28. +2 −2 pkgs/applications/video/openshot-qt/libopenshot-audio.nix
  29. +2 −2 pkgs/applications/video/openshot-qt/libopenshot.nix
  30. +2 −2 pkgs/applications/virtualization/virtualbox/default.nix
  31. +2 −1 pkgs/applications/virtualization/virtualbox/guest-additions/default.nix
  32. +2 −2 pkgs/desktops/deepin/deepin-menu/default.nix
  33. +2 −2 pkgs/desktops/deepin/dtkcore/default.nix
  34. +2 −2 pkgs/desktops/deepin/dtkwidget/default.nix
  35. +4 −3 pkgs/development/compilers/dotnet/sdk/default.nix
  36. +1 −1 pkgs/development/compilers/gcc-arm-embedded/default.nix
  37. +1 −1 pkgs/development/compilers/ghc/7.10.3.nix
  38. +1 −1 pkgs/development/compilers/ghc/8.0.2.nix
  39. +1 −1 pkgs/development/compilers/ghc/8.2.2.nix
  40. +1 −1 pkgs/development/compilers/ghc/8.4.3.nix
  41. +1 −1 pkgs/development/compilers/ghc/8.6.1.nix
  42. +1 −1 pkgs/development/compilers/ghc/head.nix
  43. +1 −0 pkgs/development/compilers/ghcjs-ng/default.nix
  44. +1 −0 pkgs/development/compilers/ghcjs/base.nix
  45. +1 −1 pkgs/development/compilers/mentor/default.nix
  46. +2 −1 pkgs/development/compilers/mlton/default.nix
  47. +1 −1 pkgs/development/compilers/opendylan/bin.nix
  48. +2 −2 pkgs/development/libraries/easyloggingpp/default.nix
  49. +14 −1 pkgs/development/libraries/exempi/default.nix
  50. +2 −2 pkgs/development/libraries/folly/default.nix
  51. +1 −0 pkgs/development/libraries/fox/default.nix
  52. +2 −2 pkgs/development/libraries/leatherman/default.nix
  53. +40 −0 pkgs/development/libraries/libgaminggear/default.nix
  54. +2 −2 pkgs/development/libraries/librelp/default.nix
  55. +2 −2 pkgs/development/libraries/postgis/default.nix
  56. +1 −1 pkgs/development/libraries/scmccid/default.nix
  57. +1 −1 pkgs/development/libraries/wiredtiger/default.nix
  58. +2 −2 pkgs/development/libraries/wxSVG/default.nix
  59. +2 −2 pkgs/development/libraries/zxcvbn-c/default.nix
  60. +2 −2 pkgs/development/python-modules/django/2_1.nix
  61. +25 −0 pkgs/development/python-modules/flask-jwt-extended/default.nix
  62. +25 −0 pkgs/development/python-modules/flask-sqlalchemy/default.nix
  63. +3 −3 pkgs/development/tools/continuous-integration/drone/default.nix
  64. +2 −2 pkgs/development/tools/delve/default.nix
  65. +2 −2 pkgs/development/tools/gauge/default.nix
  66. +7 −6 pkgs/development/tools/go-symbols/default.nix
  67. +8 −7 pkgs/development/tools/gomodifytags/default.nix
  68. +3 −4 pkgs/development/tools/gopkgs/default.nix
  69. +15 −5 pkgs/development/tools/gopkgs/deps.nix
  70. +13 −4 pkgs/development/tools/kustomize/default.nix
  71. +2 −2 pkgs/development/tools/misc/lttng-tools/default.nix
  72. +4 −12 pkgs/development/tools/rust/bindgen/default.nix
  73. +4 −4 pkgs/development/tools/vndr/default.nix
  74. +2 −2 pkgs/development/tools/yarn/default.nix
  75. +2 −2 pkgs/games/crawl/default.nix
  76. +1 −0 pkgs/games/freedroidrpg/default.nix
  77. +1 −1 pkgs/games/openarena/default.nix
  78. +1 −1 pkgs/games/planetaryannihilation/default.nix
  79. +1 −1 pkgs/games/ue4demos/default.nix
  80. +2 −1 pkgs/misc/cups/drivers/samsung/4.00.39/default.nix
  81. +1 −1 pkgs/misc/drivers/epkowa/default.nix
  82. +1 −1 pkgs/misc/jackaudio/default.nix
  83. +1 −1 pkgs/misc/jackaudio/jack1.nix
  84. +2 −2 pkgs/misc/themes/adapta/default.nix
  85. +3 −3 pkgs/os-specific/linux/apparmor/default.nix
  86. +1 −1 pkgs/os-specific/linux/ffado/default.nix
  87. +41 −0 pkgs/os-specific/linux/roccat-tools/default.nix
  88. +3 −3 pkgs/os-specific/linux/systemd/default.nix
  89. +2 −2 pkgs/servers/mail/rspamd/default.nix
  90. +1 −1 pkgs/servers/shishi/default.nix
  91. +2 −2 pkgs/tools/admin/gixy/default.nix
  92. +2 −1 pkgs/tools/filesystems/ceph/generic.nix
  93. +1 −1 pkgs/tools/misc/goaccess/default.nix
  94. +6 −2 pkgs/tools/misc/phraseapp-client/default.nix
  95. +2 −2 pkgs/tools/misc/recoverjpeg/default.nix
  96. +2 −2 pkgs/tools/misc/yank/default.nix
  97. +2 −2 pkgs/tools/networking/fping/default.nix
  98. +3 −3 pkgs/tools/networking/kail/default.nix
  99. +40 −121 pkgs/tools/networking/kail/deps.nix
  100. +2 −2 pkgs/tools/networking/nss-pam-ldapd/default.nix
  101. +1 −1 pkgs/tools/package-management/nix/default.nix
  102. +2 −2 pkgs/tools/security/ccid/default.nix
  103. +1 −1 pkgs/tools/security/gorilla-bin/default.nix
  104. +2 −2 pkgs/tools/security/lynis/default.nix
  105. +2 −0 pkgs/tools/security/vault/default.nix
  106. +2 −2 pkgs/tools/system/fio/default.nix
  107. +2 −2 pkgs/tools/system/rsyslog/default.nix
  108. +7 −1 pkgs/top-level/all-packages.nix
  109. +14 −0 pkgs/top-level/perl-packages.nix
  110. +3 −17 pkgs/top-level/python-packages.nix
2 changes: 1 addition & 1 deletion nixos/modules/programs/zsh/zsh.nix
Original file line number Diff line number Diff line change
@@ -11,7 +11,7 @@ let
cfg = config.programs.zsh;

zshAliases = concatStringsSep "\n" (
mapAttrsFlatten (k: v: "alias ${k}='${v}'") cfg.shellAliases
mapAttrsFlatten (k: v: "alias ${k}=${escapeShellArg v}") cfg.shellAliases
);

in
84 changes: 7 additions & 77 deletions nixos/modules/services/mail/rspamd.nix
Original file line number Diff line number Diff line change
@@ -115,36 +115,10 @@ let
};
};

indexOf = default: start: list: e:
if list == []
then default
else if (head list) == e then start
else (indexOf default (start + (length (listenStreams (head list).socket))) (tail list) e);

systemdSocket = indexOf (abort "Socket not found") 0 allSockets;

isUnixSocket = socket: hasPrefix "/" (if (isString socket) then socket else socket.socket);
isPort = hasPrefix "*:";
isIPv4Socket = hasPrefix "*v4:";
isIPv6Socket = hasPrefix "*v6:";
isLocalHost = hasPrefix "localhost:";
listenStreams = socket:
if (isLocalHost socket) then
let port = (removePrefix "localhost:" socket);
in [ "127.0.0.1:${port}" ] ++ (if config.networking.enableIPv6 then ["[::1]:${port}"] else [])
else if (isIPv6Socket socket) then [removePrefix "*v6:" socket]
else if (isPort socket) then [removePrefix "*:" socket]
else if (isIPv4Socket socket) then
throw "error: IPv4 only socket not supported in rspamd with socket activation"
else if (length (splitString " " socket)) != 1 then
throw "error: string options not supported in rspamd with socket activation"
else [socket];

mkBindSockets = enabled: socks: concatStringsSep "\n " (flatten (map (each:
if cfg.socketActivation && enabled != false then
let systemd = (systemdSocket each);
in (imap (idx: e: "bind_socket = \"systemd:${toString (systemd + idx - 1)}\";") (listenStreams each.socket))
else "bind_socket = \"${each.rawEntry}\";") socks));

mkBindSockets = enabled: socks: concatStringsSep "\n "
(flatten (map (each: "bind_socket = \"${each.rawEntry}\";") socks));

rspamdConfFile = pkgs.writeText "rspamd.conf"
''
@@ -175,18 +149,6 @@ let
${cfg.extraConfig}
'';

allMappedSockets = flatten (mapAttrsToList (name: value:
if value.enable != false
then imap (idx: each: {
name = "${name}";
index = idx;
value = each;
}) value.bindSockets
else []) cfg.workers);
allSockets = map (e: e.value) allMappedSockets;

allSocketNames = map (each: "rspamd-${each.name}-${toString each.index}.socket") allMappedSockets;

in

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

socketActivation = mkOption {
type = types.bool;
description = ''
Enable systemd socket activation for rspamd.
'';
};

workers = mkOption {
type = with types; attrsOf (submodule workerOpts);
description = ''
@@ -272,13 +227,6 @@ in

config = mkIf cfg.enable {

services.rspamd.socketActivation = mkDefault (!opts.bindSocket.isDefined && !opts.bindUISocket.isDefined);

assertions = [ {
assertion = !cfg.socketActivation || !(opts.bindSocket.isDefined || opts.bindUISocket.isDefined);
message = "Can't use socketActivation for rspamd when using renamed bind socket options";
} ];

# Allow users to run 'rspamc' and 'rspamadm'.
environment.systemPackages = [ pkgs.rspamd ];

@@ -299,43 +247,25 @@ in
systemd.services.rspamd = {
description = "Rspamd Service";

wantedBy = mkIf (!cfg.socketActivation) [ "multi-user.target" ];
after = [ "network.target" ] ++
(if cfg.socketActivation then allSocketNames else []);
requires = mkIf cfg.socketActivation allSocketNames;
wantedBy = [ "multi-user.target" ];
after = [ "network.target" ];

serviceConfig = {
ExecStart = "${pkgs.rspamd}/bin/rspamd ${optionalString cfg.debug "-d"} --user=${cfg.user} --group=${cfg.group} --pid=/run/rspamd.pid -c ${rspamdConfFile} -f";
Restart = "always";
RuntimeDirectory = "rspamd";
RuntimeDirectoryPreserve = mkIf cfg.socketActivation true;
PrivateTmp = true;
Sockets = mkIf cfg.socketActivation (concatStringsSep " " allSocketNames);
};

preStart = ''
${pkgs.coreutils}/bin/mkdir -p /var/lib/rspamd
${pkgs.coreutils}/bin/chown ${cfg.user}:${cfg.group} /var/lib/rspamd
'';
};
systemd.sockets = mkIf cfg.socketActivation
(listToAttrs (map (each: {
name = "rspamd-${each.name}-${toString each.index}";
value = {
description = "Rspamd socket ${toString each.index} for worker ${each.name}";
wantedBy = [ "sockets.target" ];
listenStreams = (listenStreams each.value.socket);
socketConfig = {
BindIPv6Only = mkIf (isIPv6Socket each.value.socket) "ipv6-only";
Service = "rspamd.service";
SocketUser = mkIf (isUnixSocket each.value.socket) each.value.owner;
SocketGroup = mkIf (isUnixSocket each.value.socket) each.value.group;
SocketMode = mkIf (isUnixSocket each.value.socket) each.value.mode;
};
};
}) allMappedSockets));
};
imports = [
(mkRemovedOptionModule [ "services" "rspamd" "socketActivation" ]
"Socket activation never worked correctly and could at this time not be fixed and so was removed")
(mkRenamedOptionModule [ "services" "rspamd" "bindSocket" ] [ "services" "rspamd" "workers" "normal" "bindSockets" ])
(mkRenamedOptionModule [ "services" "rspamd" "bindUISocket" ] [ "services" "rspamd" "workers" "controller" "bindSockets" ])
];
2 changes: 1 addition & 1 deletion nixos/modules/system/boot/kexec.nix
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{ pkgs, lib, ... }:

{
config = lib.mkIf (pkgs.kexectools.meta.available) {
config = lib.mkIf (lib.any (lib.meta.platformMatch pkgs.stdenv.hostPlatform) pkgs.kexectools.meta.platforms) {
environment.systemPackages = [ pkgs.kexectools ];

systemd.services."prepare-kexec" =
54 changes: 4 additions & 50 deletions nixos/tests/rspamd.nix
Original file line number Diff line number Diff line change
@@ -13,13 +13,10 @@ let
$machine->succeed("[[ \"\$(stat -c %G ${socket})\" == \"${group}\" ]]");
$machine->succeed("[[ \"\$(stat -c %a ${socket})\" == \"${mode}\" ]]");
'';
simple = name: socketActivation: enableIPv6: makeTest {
simple = name: enableIPv6: makeTest {
name = "rspamd-${name}";
machine = {
services.rspamd = {
enable = true;
socketActivation = socketActivation;
};
services.rspamd.enable = true;
networking.enableIPv6 = enableIPv6;
};
testScript = ''
@@ -32,13 +29,6 @@ let
sleep 10;
$machine->log($machine->succeed("cat /etc/rspamd.conf"));
$machine->log($machine->succeed("systemctl cat rspamd.service"));
${if socketActivation then ''
$machine->log($machine->succeed("systemctl cat rspamd-controller-1.socket"));
$machine->log($machine->succeed("systemctl cat rspamd-normal-1.socket"));
'' else ''
$machine->fail("systemctl cat rspamd-controller-1.socket");
$machine->fail("systemctl cat rspamd-normal-1.socket");
''}
$machine->log($machine->succeed("curl http://localhost:11334/auth"));
$machine->log($machine->succeed("curl http://127.0.0.1:11334/auth"));
${optionalString enableIPv6 ''
@@ -48,10 +38,8 @@ let
};
in
{
simple = simple "simple" false true;
ipv4only = simple "ipv4only" false false;
simple-socketActivated = simple "simple-socketActivated" true true;
ipv4only-socketActivated = simple "ipv4only-socketActivated" true false;
simple = simple "simple" true;
ipv4only = simple "ipv4only" false;
deprecated = makeTest {
name = "rspamd-deprecated";
machine = {
@@ -68,7 +56,6 @@ in
${checkSocket "/run/rspamd.sock" "root" "root" "600" }
${checkSocket "/run/rspamd-worker.sock" "root" "root" "666" }
$machine->log($machine->succeed("cat /etc/rspamd.conf"));
$machine->fail("systemctl cat rspamd-normal-1.socket");
$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"));
'';
@@ -79,7 +66,6 @@ in
machine = {
services.rspamd = {
enable = true;
socketActivation = false;
workers.normal.bindSockets = [{
socket = "/run/rspamd.sock";
mode = "0600";
@@ -101,38 +87,6 @@ in
${checkSocket "/run/rspamd.sock" "root" "root" "600" }
${checkSocket "/run/rspamd-worker.sock" "root" "root" "666" }
$machine->log($machine->succeed("cat /etc/rspamd.conf"));
$machine->fail("systemctl cat rspamd-normal-1.socket");
$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"));
'';
};
socketActivated = makeTest {
name = "rspamd-socketActivated";
machine = {
services.rspamd = {
enable = true;
workers.normal.bindSockets = [{
socket = "/run/rspamd.sock";
mode = "0600";
owner = "root";
group = "root";
}];
workers.controller.bindSockets = [{
socket = "/run/rspamd-worker.sock";
mode = "0666";
owner = "root";
group = "root";
}];
};
};

testScript = ''
startAll
$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("systemctl cat rspamd-normal-1.socket"));
$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"));
'';
4 changes: 2 additions & 2 deletions pkgs/applications/display-managers/lightdm/gtk-greeter.nix
Original file line number Diff line number Diff line change
@@ -9,14 +9,14 @@

let
ver_branch = "2.0";
version = "2.0.5";
version = "2.0.6";
in
stdenv.mkDerivation rec {
name = "lightdm-gtk-greeter-${version}";

src = fetchurl {
url = "${meta.homepage}/${ver_branch}/${version}/+download/${name}.tar.gz";
sha256 = "1pw70db8320wvkhkrw4i2qprxlrqy3jmb6yrr4bm3lgrizahiijx";
sha256 = "1pis5qyg95pg31dvnfqq34bzgj00hg4vs547r8h60lxjk81z8p15";
};

nativeBuildInputs = [ pkgconfig ];
4 changes: 2 additions & 2 deletions pkgs/applications/editors/flpsed/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{stdenv, fetchurl, fltk13, ghostscript}:
{ stdenv, fetchurl, fltk13, ghostscript, xlibs }:

stdenv.mkDerivation rec {
name = "flpsed-${version}";
@@ -21,7 +21,7 @@ stdenv.mkDerivation rec {
description = "WYSIWYG PostScript annotator";
homepage = http://flpsed.org/flpsed.html;
license = licenses.gpl3;
platforms = platforms.mesaPlatforms;
platforms = platforms.linux;
maintainers = with maintainers; [ fuuzetsu ];
};
}
2 changes: 1 addition & 1 deletion pkgs/applications/editors/jetbrains/common.nix
Original file line number Diff line number Diff line change
@@ -26,7 +26,7 @@ with stdenv; lib.makeOverridable mkDerivation rec {
'';
};

buildInputs = [ makeWrapper patchelf p7zip unzip ];
nativeBuildInputs = [ makeWrapper patchelf p7zip unzip ];

patchPhase = ''
get_file_size() {
4 changes: 2 additions & 2 deletions pkgs/applications/graphics/kgraphviewer/default.nix
Original file line number Diff line number Diff line change
@@ -6,11 +6,11 @@

mkDerivation rec {
name = "kgraphviewer-${version}";
version = "2.4.2";
version = "2.4.3";

src = fetchurl {
url = "mirror://kde/stable/kgraphviewer/${version}/${name}.tar.xz";
sha256 = "1jc5zfgy4narwgn7rscfwz7l5pjy0jghal6yb3kd4sfadi78nhs9";
sha256 = "1h6pgg89gvxl8gw7wmkabyqqrzad5pxyv5lsmn1fl4ir8lcc5q2l";
};

buildInputs = [
4 changes: 2 additions & 2 deletions pkgs/applications/graphics/openimageio/default.nix
Original file line number Diff line number Diff line change
@@ -4,13 +4,13 @@

stdenv.mkDerivation rec {
name = "openimageio-${version}";
version = "1.8.9";
version = "1.8.14";

src = fetchFromGitHub {
owner = "OpenImageIO";
repo = "oiio";
rev = "Release-${version}";
sha256 = "0xyfb41arvi3cc5jvgj2m8skzjrb0xma8sml74svygjgagxfj65h";
sha256 = "07axn7bziy9h5jawpwcchag0nkczivaajsw69mxgmr508gw9r0xn";
};

outputs = [ "bin" "out" "dev" "doc" ];
4 changes: 2 additions & 2 deletions pkgs/applications/misc/chirp/default.nix
Original file line number Diff line number Diff line change
@@ -3,11 +3,11 @@

stdenv.mkDerivation rec {
name = "chirp-daily-${version}";
version = "20180815";
version = "20180906";

src = fetchurl {
url = "https://trac.chirp.danplanet.com/chirp_daily/daily-${version}/${name}.tar.gz";
sha256 = "0z3jh9sbszs8x0xjmkgxa3b1xnw3w9b13pml4i5apx3mj171npyv";
sha256 = "00cq15892p46z1j1fl2pd17y7k4rc6cfz7gaxb446mshxrvbfgam";
};

nativeBuildInputs = [ makeWrapper ];
4 changes: 2 additions & 2 deletions pkgs/applications/misc/googler/default.nix
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
{stdenv, fetchFromGitHub, python}:

stdenv.mkDerivation rec {
version = "3.6";
version = "3.7";
name = "googler-${version}";

src = fetchFromGitHub {
owner = "jarun";
repo = "googler";
rev = "v${version}";
sha256 = "1j1755b9mfmkqkgjrlsi4wr82352pqc9rfyalammqn6qrm3v3lb6";
sha256 = "0dxg849ckyy181zlrb57hd959cgvx105c35ksmvi4wl285sh5kpj";
};

propagatedBuildInputs = [ python ];
4 changes: 2 additions & 2 deletions pkgs/applications/misc/gpxsee/default.nix
Original file line number Diff line number Diff line change
@@ -2,13 +2,13 @@

stdenv.mkDerivation rec {
name = "gpxsee-${version}";
version = "5.17";
version = "5.18";

src = fetchFromGitHub {
owner = "tumic0";
repo = "GPXSee";
rev = version;
sha256 = "0fr835glvwnpq6sy181z0gskvwfrmvh7115r3d92xy71v8b1l5ib";
sha256 = "0dl10fr881b8fwf2yj14bd6gagb8hm0s46q18y2y56rw98nk4vrq";
};

nativeBuildInputs = [ qmake ];
2 changes: 1 addition & 1 deletion pkgs/applications/misc/ipmiview/default.nix
Original file line number Diff line number Diff line change
@@ -10,7 +10,7 @@ stdenv.mkDerivation rec {
sha256 = "1wp22wm7smlsb25x0cck4p660cycfczxj381930crd1qrf68mw4h";
};

buildInputs = [ patchelf makeWrapper ];
nativeBuildInputs = [ patchelf makeWrapper ];

buildPhase = with xorg; ''
patchelf --set-rpath "${stdenv.lib.makeLibraryPath [ libX11 libXext libXrender libXtst libXi ]}" ./jre/lib/amd64/xawt/libmawt.so
4 changes: 2 additions & 2 deletions pkgs/applications/misc/mediainfo-gui/default.nix
Original file line number Diff line number Diff line change
@@ -2,11 +2,11 @@
, desktop-file-utils, libSM, imagemagick }:

stdenv.mkDerivation rec {
version = "18.08";
version = "18.08.1";
name = "mediainfo-gui-${version}";
src = fetchurl {
url = "https://mediaarea.net/download/source/mediainfo/${version}/mediainfo_${version}.tar.xz";
sha256 = "0l4bhrgwfn3da6cr0jz5vs17sk7k0bc26nk7hymv04xifns5999n";
sha256 = "0rq2dczjq26g5i0ac8px7xmxjvqq4h0rzd97fy5824yb2c5ksxs9";
};

nativeBuildInputs = [ autoreconfHook pkgconfig ];
Loading