diff options
author | Ryan Mulligan <ryan@ryantm.com> | 2019-02-17 14:23:26 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-02-17 14:23:26 -0800 |
commit | a52d280cc4169f01ed168959cddd449336f37eba (patch) | |
tree | 1ba6566d8ab8b829f461a15a2527050d43951155 | |
parent | f2e08560796426917edd5e9ac75b668ecef0fe66 (diff) | |
parent | 6871e4393780c0cef6d11e467d1c58aef7e7efea (diff) | |
download | nixlib-a52d280cc4169f01ed168959cddd449336f37eba.tar nixlib-a52d280cc4169f01ed168959cddd449336f37eba.tar.gz nixlib-a52d280cc4169f01ed168959cddd449336f37eba.tar.bz2 nixlib-a52d280cc4169f01ed168959cddd449336f37eba.tar.lz nixlib-a52d280cc4169f01ed168959cddd449336f37eba.tar.xz nixlib-a52d280cc4169f01ed168959cddd449336f37eba.tar.zst nixlib-a52d280cc4169f01ed168959cddd449336f37eba.zip |
Merge pull request #55955 from rnhmjoj/diod
Fixes for diod
-rw-r--r-- | nixos/modules/services/network-filesystems/diod.nix | 1 | ||||
-rw-r--r-- | pkgs/servers/diod/default.nix | 16 |
2 files changed, 11 insertions, 6 deletions
diff --git a/nixos/modules/services/network-filesystems/diod.nix b/nixos/modules/services/network-filesystems/diod.nix index 556fad4d8ab4..063bae6ddb1d 100644 --- a/nixos/modules/services/network-filesystems/diod.nix +++ b/nixos/modules/services/network-filesystems/diod.nix @@ -153,7 +153,6 @@ in after = [ "network.target" ]; serviceConfig = { ExecStart = "${pkgs.diod}/sbin/diod -f -c ${diodConfig}"; - CapabilityBoundingSet = "cap_net_bind_service+=ep"; }; }; }; diff --git a/pkgs/servers/diod/default.nix b/pkgs/servers/diod/default.nix index eba73b2692a2..2199d62b4dd7 100644 --- a/pkgs/servers/diod/default.nix +++ b/pkgs/servers/diod/default.nix @@ -1,4 +1,6 @@ -{ stdenv, fetchurl, munge, lua, libcap, perl, ncurses }: +{ stdenv, fetchurl, munge, lua, + libcap, perl, ncurses +}: stdenv.mkDerivation rec { name = "diod-${version}"; @@ -9,12 +11,16 @@ stdenv.mkDerivation rec { sha256 = "17wckwfsqj61yixz53nwkc35z66arb1x3napahpi64m7q68jn7gl"; }; + postPatch = '' + substituteInPlace diod/xattr.c --replace attr/xattr.h sys/xattr.h + ''; + buildInputs = [ munge lua libcap perl ncurses ]; - meta = { + meta = with stdenv.lib; { description = "An I/O forwarding server that implements a variant of the 9P protocol"; - maintainers = [ stdenv.lib.maintainers.rickynils]; - platforms = stdenv.lib.platforms.linux; - license = stdenv.lib.licenses.gpl2Plus; + maintainers = with maintainers; [ rnhmjoj rickynils ]; + platforms = platforms.linux; + license = licenses.gpl2Plus; }; } |