nixpkgs/pkgs/servers/diod/default.nix
volth 46420bbaa3 treewide: name -> pname (easy cases) (#66585)
treewide replacement of

stdenv.mkDerivation rec {
  name = "*-${version}";
  version = "*";

to pname
2019-08-15 13:41:18 +01:00

26 lines
723 B
Nix

{ stdenv, fetchurl, munge, lua,
libcap, perl, ncurses
}:
stdenv.mkDerivation rec {
pname = "diod";
version = "1.0.24";
src = fetchurl {
url = "https://github.com/chaos/diod/releases/download/${version}/${pname}-${version}.tar.gz";
sha256 = "17wckwfsqj61yixz53nwkc35z66arb1x3napahpi64m7q68jn7gl";
};
postPatch = ''
substituteInPlace diod/xattr.c --replace attr/xattr.h sys/xattr.h
'';
buildInputs = [ munge lua libcap perl ncurses ];
meta = with stdenv.lib; {
description = "An I/O forwarding server that implements a variant of the 9P protocol";
maintainers = with maintainers; [ rnhmjoj rickynils ];
platforms = platforms.linux;
license = licenses.gpl2Plus;
};
}