2020-05-03 17:38:23 +00:00
|
|
|
{ stdenv, fetchurl, pkgconfig, libusb1, libyubikey, json_c }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "yubikey-personalization";
|
|
|
|
version = "1.20.0";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://developers.yubico.com/yubikey-personalization/Releases/ykpers-${version}.tar.gz";
|
|
|
|
sha256 = "14wvlwqnwj0gllkpvfqiy8ns938bwvjsz8x1hmymmx32m074vj0f";
|
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
2020-05-03 17:38:23 +00:00
|
|
|
buildInputs = [ libusb1 libyubikey json_c ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
configureFlags = [
|
|
|
|
"--with-backend=libusb-1.0"
|
|
|
|
];
|
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
# Don't use 70-yubikey.rules because it depends on ConsoleKit
|
|
|
|
install -D -t $out/lib/udev/rules.d 69-yubikey.rules
|
|
|
|
'';
|
|
|
|
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|