Files
nixpkgs/pkgs/by-name/ne/netevent/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

56 lines
1.0 KiB
Nix

{
lib,
stdenv,
fetchFromGitHub,
docutils,
installShellFiles,
}:
stdenv.mkDerivation {
pname = "netevent";
version = "20230429";
src = fetchFromGitHub {
owner = "Blub";
repo = "netevent";
rev = "bcadfcc42db0f57a28abddbf19d382453cb1c81f";
sha256 = "ikC6S1LNkmv474dlhajtEuHat497Rcdo9O+bCQMXTHQ=";
};
buildInputs = [ docutils ];
nativeBuildInputs = [ installShellFiles ];
outputs = [
"out"
"doc"
"man"
];
configurePhase = ''
runHook preConfigure
export RST2MAN=rst2man
./configure
runHook postConfigure
'';
installPhase = ''
mkdir -p $out/bin
install -m 0755 netevent $out/bin/
installManPage doc/netevent.1
mkdir -p $doc/share/doc/netevent
cp doc/netevent.rst $doc/share/doc/netevent/netevent.rst
'';
meta = with lib; {
description = "Share linux event devices with other machines";
homepage = "https://github.com/Blub/netevent";
license = licenses.gpl2Only;
platforms = platforms.linux;
maintainers = with maintainers; [ rgrunbla ];
};
}