nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at devShellTools-shell 55 lines 1.1 kB view raw
1{ 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 docutils, 6 installShellFiles, 7}: 8 9stdenv.mkDerivation { 10 pname = "netevent"; 11 version = "20230429"; 12 13 src = fetchFromGitHub { 14 owner = "Blub"; 15 repo = "netevent"; 16 rev = "bcadfcc42db0f57a28abddbf19d382453cb1c81f"; 17 sha256 = "ikC6S1LNkmv474dlhajtEuHat497Rcdo9O+bCQMXTHQ="; 18 }; 19 20 buildInputs = [ docutils ]; 21 nativeBuildInputs = [ installShellFiles ]; 22 23 outputs = [ 24 "out" 25 "doc" 26 "man" 27 ]; 28 29 configurePhase = '' 30 runHook preConfigure 31 32 export RST2MAN=rst2man 33 ./configure 34 35 runHook postConfigure 36 ''; 37 38 installPhase = '' 39 mkdir -p $out/bin 40 install -m 0755 netevent $out/bin/ 41 42 installManPage doc/netevent.1 43 44 mkdir -p $doc/share/doc/netevent 45 cp doc/netevent.rst $doc/share/doc/netevent/netevent.rst 46 ''; 47 48 meta = with lib; { 49 description = "Share linux event devices with other machines"; 50 homepage = "https://github.com/Blub/netevent"; 51 license = licenses.gpl2Only; 52 platforms = platforms.linux; 53 maintainers = with maintainers; [ rgrunbla ]; 54 }; 55}