forgejo-lts: 7.0.10 -> 7.0.11
[NixPkgs.git] / pkgs / servers / diod / default.nix
bloba96f9e1ada289eccd4cef20adbb74ec68c85066e
1 { lib, stdenv, fetchurl, munge, lua,
2   libcap, perl, ncurses
3 }:
5 stdenv.mkDerivation rec {
6   pname = "diod";
7   version = "1.0.24";
9   src = fetchurl {
10     url = "https://github.com/chaos/diod/releases/download/${version}/${pname}-${version}.tar.gz";
11     sha256 = "17wckwfsqj61yixz53nwkc35z66arb1x3napahpi64m7q68jn7gl";
12   };
14   postPatch = ''
15     substituteInPlace diod/xattr.c --replace attr/xattr.h sys/xattr.h
16     sed -i -e '/sys\/types\.h>/a #include <sys/sysmacros.h>' diod/ops.c
17   '';
19   buildInputs = [ munge lua libcap perl ncurses ];
21   meta = with lib; {
22     description = "I/O forwarding server that implements a variant of the 9P protocol";
23     maintainers = with maintainers; [ rnhmjoj ];
24     platforms   = platforms.linux;
25     license     = licenses.gpl2Plus;
26   };