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