nitrokey-udev-rules: init
This commit is contained in:
parent
932091f333
commit
5e4a797888
|
@ -0,0 +1,25 @@
|
||||||
|
{ stdenv, nitrokey-app
|
||||||
|
, group ? "nitrokey"
|
||||||
|
}:
|
||||||
|
|
||||||
|
stdenv.mkDerivation {
|
||||||
|
name = "nitrokey-udev-rules";
|
||||||
|
|
||||||
|
inherit (nitrokey-app) src;
|
||||||
|
|
||||||
|
dontBuild = true;
|
||||||
|
|
||||||
|
patchPhase = ''
|
||||||
|
substituteInPlace data/41-nitrokey.rules --replace plugdev "${group}"
|
||||||
|
'';
|
||||||
|
|
||||||
|
installPhase = ''
|
||||||
|
mkdir -p $out/etc/udev/rules.d
|
||||||
|
cp data/41-nitrokey.rules $out/etc/udev/rules.d
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = {
|
||||||
|
description = "udev rules for Nitrokeys";
|
||||||
|
inherit (nitrokey-app.meta) homepage license maintainers;
|
||||||
|
};
|
||||||
|
}
|
|
@ -18825,6 +18825,7 @@ with pkgs;
|
||||||
xrq = callPackage ../applications/misc/xrq { };
|
xrq = callPackage ../applications/misc/xrq { };
|
||||||
|
|
||||||
nitrokey-app = callPackage ../tools/security/nitrokey-app { };
|
nitrokey-app = callPackage ../tools/security/nitrokey-app { };
|
||||||
|
nitrokey-udev-rules = callPackage ../tools/security/nitrokey-app/udev-rules.nix { };
|
||||||
|
|
||||||
fpm2 = callPackage ../tools/security/fpm2 { };
|
fpm2 = callPackage ../tools/security/fpm2 { };
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue