11 stdenv.mkDerivation (finalAttrs: {
12 pname = "libnitrokey";
15 src = fetchFromGitHub {
18 rev = "v${finalAttrs.version}";
19 hash = "sha256-4PEZ31QyVOmdhpKqTN8fwcHoLuu+w+OJ3fZeqwlE+io=";
20 # On OSX, libnitrokey depends on a custom version of hidapi in a submodule.
21 # Monitor https://github.com/Nitrokey/libnitrokey/issues/140 to see if we
22 # can remove this extra work one day.
23 fetchSubmodules = true;
33 "-DCMAKE_INSTALL_UDEVRULESDIR=etc/udev/rules.d"
36 buildInputs = [ libusb1 ];
38 propagatedBuildInputs = [ hidapi ];
41 description = "Communicate with Nitrokey devices in a clean and easy manner";
42 homepage = "https://github.com/Nitrokey/libnitrokey";
43 license = licenses.lgpl3;
44 maintainers = with maintainers; [