nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at 24.05-beta 41 lines 991 B view raw
1{ lib, stdenv, fetchFromGitHub, docutils, installShellFiles }: 2 3stdenv.mkDerivation { 4 pname = "netevent"; 5 version = "20230429"; 6 7 src = fetchFromGitHub { 8 owner = "Blub"; 9 repo = "netevent"; 10 rev = "bcadfcc42db0f57a28abddbf19d382453cb1c81f"; 11 sha256 = "ikC6S1LNkmv474dlhajtEuHat497Rcdo9O+bCQMXTHQ="; 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}