Files
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

49 lines
876 B
Nix

{
lib,
stdenvNoCC,
fetchFromGitHub,
python3,
udevCheckHook,
}:
stdenvNoCC.mkDerivation (finalAttrs: {
pname = "nitrokey-udev-rules";
version = "1.1.0";
src = fetchFromGitHub {
owner = "Nitrokey";
repo = "nitrokey-udev-rules";
rev = "v${finalAttrs.version}";
hash = "sha256-LKpd6O9suAc2+FFgpuyTClEgL/JiZiokH3DV8P3C7Aw=";
};
nativeBuildInputs = [
python3
udevCheckHook
];
doInstallCheck = true;
buildPhase = ''
runHook preBuild
make generate
runHook postBuild
'';
installPhase = ''
install -D 41-nitrokey.rules -t $out/etc/udev/rules.d
'';
meta = with lib; {
description = "udev rules for Nitrokey devices";
homepage = "https://github.com/Nitrokey/nitrokey-udev-rules";
license = [ licenses.cc0 ];
maintainers = with maintainers; [
frogamic
robinkrahl
];
};
})