3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/servers/diod/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

28 lines
783 B
Nix
Raw Normal View History

{ lib, stdenv, fetchurl, munge, lua,
2019-02-17 11:07:22 +00:00
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";
};
2019-02-17 11:07:22 +00:00
postPatch = ''
substituteInPlace diod/xattr.c --replace attr/xattr.h sys/xattr.h
sed -i -e '/sys\/types\.h>/a #include <sys/sysmacros.h>' diod/ops.c
2019-02-17 11:07:22 +00:00
'';
2014-09-10 16:21:45 +01:00
buildInputs = [ munge lua libcap perl ncurses ];
meta = with lib; {
description = "An I/O forwarding server that implements a variant of the 9P protocol";
maintainers = with maintainers; [ rnhmjoj ];
2019-02-17 11:07:22 +00:00
platforms = platforms.linux;
license = licenses.gpl2Plus;
};
}