mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-03 04:13:01 +00:00
4e51a466bd
yubico-piv-tool -> 0.1.6 yubikey-personalization -> 1.17.1 yubikey-personalization-gui-3 -> 3.1.20
31 lines
868 B
Nix
31 lines
868 B
Nix
{ stdenv, fetchurl, pkgconfig, libusb, libyubikey, json_c }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "yubikey-personalization-${version}";
|
|
version = "1.17.1";
|
|
|
|
src = fetchurl {
|
|
url = "https://developers.yubico.com/yubikey-personalization/Releases/ykpers-${version}.tar.gz";
|
|
sha256 = "1i399z23skvyfdr3fp7a340qi3ynfcwdqr1y540swjy9pg1awssm";
|
|
};
|
|
|
|
buildInputs = [ pkgconfig libusb libyubikey json_c ];
|
|
|
|
configureFlags = [
|
|
"--with-backend=libusb-1.0"
|
|
];
|
|
|
|
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/yubikey-personalization;
|
|
description = "a library and command line tool to personalize YubiKeys";
|
|
license = licenses.bsd2;
|
|
platforms = platforms.unix;
|
|
maintainers = with maintainers; [ wkennington ];
|
|
};
|
|
}
|