nixpkgs/pkgs/servers/diod/default.nix
Vladimír Čunát 2e6bf42a22
Merge branch 'master' into staging-next
There ver very many conflicts, basically all due to
name -> pname+version.  Fortunately, almost everything was auto-resolved
by kdiff3, and for now I just fixed up a couple evaluation problems,
as verified by the tarball job.  There might be some fallback to these
conflicts, but I believe it should be minimal.

Hydra nixpkgs: ?compare=1538299
2019-08-24 08:55:37 +02:00

27 lines
713 B
Nix

{ stdenv, fetchurl, munge, lua,
libcap, perl, ncurses
}:
stdenv.mkDerivation rec {
pname = "diod";
version = "1.0.24";
src = fetchurl {
url = "https://github.com/chaos/diod/releases/download/${version}/${pname}-${version}.tar.gz";
sha256 = "17wckwfsqj61yixz53nwkc35z66arb1x3napahpi64m7q68jn7gl";
};
postPatch = ''
substituteInPlace diod/xattr.c --replace attr/xattr.h sys/xattr.h
'';
buildInputs = [ munge lua libcap perl ncurses ];
meta = with stdenv.lib; {
description = "An I/O forwarding server that implements a variant of the 9P protocol";
maintainers = with maintainers; [ rnhmjoj ];
platforms = platforms.linux;
license = licenses.gpl2Plus;
};
}