nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at litex 41 lines 827 B view raw
1{ lib 2, stdenv 3, fetchFromGitHub 4, cmake 5, pkg-config 6, hidapi 7, libusb1 8}: 9 10stdenv.mkDerivation (finalAttrs: { 11 pname = "libnitrokey"; 12 version = "3.8"; 13 14 src = fetchFromGitHub { 15 owner = "Nitrokey"; 16 repo = "libnitrokey"; 17 rev = "v${finalAttrs.version}"; 18 hash = "sha256-9ZMR1g04gNzslax6NpD6KykfUfjpKFIizaMMn06iJa0="; 19 }; 20 21 nativeBuildInputs = [ 22 cmake 23 pkg-config 24 ]; 25 26 cmakeFlags = [ 27 "-DADD_GIT_INFO=OFF" 28 "-DCMAKE_INSTALL_UDEVRULESDIR=etc/udev/rules.d" 29 ]; 30 31 buildInputs = [ libusb1 ]; 32 33 propagatedBuildInputs = [ hidapi ]; 34 35 meta = with lib; { 36 description = "Communicate with Nitrokey devices in a clean and easy manner"; 37 homepage = "https://github.com/Nitrokey/libnitrokey"; 38 license = licenses.lgpl3; 39 maintainers = with maintainers; [ panicgh raitobezarius ]; 40 }; 41})