Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at python-updates 40 lines 811 B view raw
1{ 2 lib, 3 stdenv, 4 fetchurl, 5 munge, 6 lua, 7 libcap, 8 perl, 9 ncurses, 10}: 11 12stdenv.mkDerivation rec { 13 pname = "diod"; 14 version = "1.0.24"; 15 16 src = fetchurl { 17 url = "https://github.com/chaos/diod/releases/download/${version}/${pname}-${version}.tar.gz"; 18 sha256 = "17wckwfsqj61yixz53nwkc35z66arb1x3napahpi64m7q68jn7gl"; 19 }; 20 21 postPatch = '' 22 substituteInPlace diod/xattr.c --replace attr/xattr.h sys/xattr.h 23 sed -i -e '/sys\/types\.h>/a #include <sys/sysmacros.h>' diod/ops.c 24 ''; 25 26 buildInputs = [ 27 munge 28 lua 29 libcap 30 perl 31 ncurses 32 ]; 33 34 meta = with lib; { 35 description = "I/O forwarding server that implements a variant of the 9P protocol"; 36 maintainers = with maintainers; [ rnhmjoj ]; 37 platforms = platforms.linux; 38 license = licenses.gpl2Plus; 39 }; 40}