aboutsummaryrefslogtreecommitdiff
path: root/pkgs/development/libraries/libu2f-host
diff options
context:
space:
mode:
authorMoritz Ulrich <moritz@tarn-vedra.de>2016-04-24 14:34:25 +0200
committerMoritz Ulrich <moritz@tarn-vedra.de>2016-04-24 14:36:50 +0200
commitdc0d32cab756b3b7c61b031c6b7767f790aba293 (patch)
tree38c91982990250c43b82f70dde3bed4f5e501dbb /pkgs/development/libraries/libu2f-host
parent268ae334d996574614bfa5678273f30eda9fe278 (diff)
libu2f-host: Install udev-rules.
This allows users to automatically set up necessary udev-rules by adding `pkgs.libu2f-host` to `services.udev.packages`.
Diffstat (limited to 'pkgs/development/libraries/libu2f-host')
-rw-r--r--pkgs/development/libraries/libu2f-host/default.nix5
1 files changed, 5 insertions, 0 deletions
diff --git a/pkgs/development/libraries/libu2f-host/default.nix b/pkgs/development/libraries/libu2f-host/default.nix
index de51da51bca6..dc2481a2e85b 100644
--- a/pkgs/development/libraries/libu2f-host/default.nix
+++ b/pkgs/development/libraries/libu2f-host/default.nix
@@ -11,6 +11,11 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ pkgconfig ];
buildInputs = [ json_c hidapi ];
+ postInstall = ''
+ mkdir -p $out/lib/udev/rules.d/
+ cp -v *.rules $out/lib/udev/rules.d/
+ '';
+
meta = with stdenv.lib; {
homepage = https://developers.yubico.com/libu2f-host;
description = "A C library and command-line tool thati mplements the host-side of the U2F protocol";