Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib, stdenv, fetchFromGitHub, docutils, installShellFiles }: 2 3stdenv.mkDerivation { 4 pname = "netevent"; 5 version = "20201018"; 6 7 src = fetchFromGitHub { 8 owner = "Blub"; 9 repo = "netevent"; 10 rev = "ddd330f0dc956a95a111c58ad10546071058e4c1"; 11 sha256 = "0myk91pmim0m51h4b8hplkbxvns0icvfmv0401r0hw8md828nh5c"; 12 }; 13 14 buildInputs = [ docutils ]; 15 nativeBuildInputs = [ installShellFiles ]; 16 17 outputs = [ "out" "doc" "man" ]; 18 19 configurePhase = '' 20 export RST2MAN=rst2man 21 ./configure 22 ''; 23 24 installPhase = '' 25 mkdir -p $out/bin 26 install -m 0755 netevent $out/bin/ 27 28 installManPage doc/netevent.1 29 30 mkdir -p $doc/share/doc/netevent 31 cp doc/netevent.rst $doc/share/doc/netevent/netevent.rst 32 ''; 33 34 meta = with lib; { 35 description = "Share linux event devices with other machines"; 36 homepage = "https://github.com/Blub/netevent"; 37 license = licenses.gpl2Only; 38 platforms = platforms.linux; 39 maintainers = with maintainers; [ rgrunbla ]; 40 }; 41}