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