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 {
|
|
|
|
name = "diod-${version}";
|
2018-02-26 04:02:14 +00:00
|
|
|
version = "1.0.24";
|
2013-08-20 15:24:30 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2014-08-20 14:10:20 +00: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 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
|
|
|
|
'';
|
|
|
|
|
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-02-17 11:07:22 +00:00
|
|
|
maintainers = with maintainers; [ rnhmjoj rickynils ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
license = licenses.gpl2Plus;
|
2013-08-20 15:24:30 +00:00
|
|
|
};
|
|
|
|
}
|