git.iko.soy/typeable/nixpkgs
on master help sign in
nitrokey-udev-rules: init
commit5e4a797888e0612f00a0509918d1d9aaa5219d9d authorFranz Pletz <fpletz@fnordicwalking.de> dateWed 24 May 2017, 23:58 (10 years ago) parent932091f
2 files changed+26
pkgs/tools/security/nitrokey-app/udev-rules.nix+25 pkgs/top-level/all-packages.nix+1
pkgs/tools/security/nitrokey-app/udev-rules.nixnew file+25
@@ -0,0 +1,25 @@
1+{ stdenv, nitrokey-app
2+, group ? "nitrokey"
3+}:
4+
5+stdenv.mkDerivation {
6+ name = "nitrokey-udev-rules";
7+
8+ inherit (nitrokey-app) src;
9+
10+ dontBuild = true;
11+
12+ patchPhase = ''
13+ substituteInPlace data/41-nitrokey.rules --replace plugdev "${group}"
14+ '';
15+
16+ installPhase = ''
17+ mkdir -p $out/etc/udev/rules.d
18+ cp data/41-nitrokey.rules $out/etc/udev/rules.d
19+ '';
20+
21+ meta = {
22+ description = "udev rules for Nitrokeys";
23+ inherit (nitrokey-app.meta) homepage license maintainers;
24+ };
25+}
pkgs/top-level/all-packages.nix+1
@@ -18825,6 +18825,7 @@ with pkgs;
1882518825 xrq = callPackage ../applications/misc/xrq { };
1882618826
1882718827 nitrokey-app = callPackage ../tools/security/nitrokey-app { };
18828+ nitrokey-udev-rules = callPackage ../tools/security/nitrokey-app/udev-rules.nix { };
1882818829
1882918830 fpm2 = callPackage ../tools/security/fpm2 { };
1883018831