diff options
author | Franz Pletz <fpletz@fnordicwalking.de> | 2017-05-24 23:58:33 +0200 |
---|---|---|
committer | Franz Pletz <fpletz@fnordicwalking.de> | 2017-05-26 00:47:46 +0200 |
commit | 5e4a797888e0612f00a0509918d1d9aaa5219d9d (patch) | |
tree | 35189c03ba017319c5c57e5dd830078c109950f6 /pkgs/tools/security/nitrokey-app | |
parent | 932091f33306d2c9b7062f1555377283f38c8f81 (diff) |
nitrokey-udev-rules: init
Diffstat (limited to 'pkgs/tools/security/nitrokey-app')
-rw-r--r-- | pkgs/tools/security/nitrokey-app/udev-rules.nix | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/pkgs/tools/security/nitrokey-app/udev-rules.nix b/pkgs/tools/security/nitrokey-app/udev-rules.nix new file mode 100644 index 0000000000000..99947a0eefef8 --- /dev/null +++ b/pkgs/tools/security/nitrokey-app/udev-rules.nix @@ -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; + }; +} |