2019-02-17 11:07:22 +00:00
|
|
|
{ stdenv, fetchurl, munge, lua,
|
|
|
|
libcap, perl, ncurses
|
|
|
|
}:
|
2013-08-20 15:24:30 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "diod";
|
2018-02-26 04:02:14 +00:00
|
|
|
version = "1.0.24";
|
2013-08-20 15:24:30 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2019-08-15 12:41:18 +00:00
|
|
|
url = "https://github.com/chaos/diod/releases/download/${version}/${pname}-${version}.tar.gz";
|
2018-02-26 04:02:14 +00:00
|
|
|
sha256 = "17wckwfsqj61yixz53nwkc35z66arb1x3napahpi64m7q68jn7gl";
|
2013-08-20 15:24:30 +00:00
|
|
|
};
|
|
|
|
|
2019-02-17 11:07:22 +00:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace diod/xattr.c --replace attr/xattr.h sys/xattr.h
|
2020-01-20 14:59:20 +00:00
|
|
|
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 15:21:45 +00:00
|
|
|
buildInputs = [ munge lua libcap perl ncurses ];
|
2013-08-20 15:24:30 +00:00
|
|
|
|
2019-02-17 11:07:22 +00:00
|
|
|
meta = with stdenv.lib; {
|
2013-08-20 15:24:30 +00:00
|
|
|
description = "An I/O forwarding server that implements a variant of the 9P protocol";
|
2019-08-20 13:24:01 +00:00
|
|
|
maintainers = with maintainers; [ rnhmjoj ];
|
2019-02-17 11:07:22 +00:00
|
|
|
platforms = platforms.linux;
|
|
|
|
license = licenses.gpl2Plus;
|
2013-08-20 15:24:30 +00:00
|
|
|
};
|
|
|
|
}
|