summary refs log tree commit diff
path: root/pkgs/servers/diod/default.nix
blob: 2199d62b4dd73786c7026c64a48c9b6805d15e46 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
{ stdenv, fetchurl, munge, lua,
  libcap, perl, ncurses
}:

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

  src = fetchurl {
    url = "https://github.com/chaos/diod/releases/download/${version}/${name}.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;
  };
}