2020-04-24 23:42:01 +02:00
|
|
|
{ stdenv, fetchurl, pkgconfig, libusb1, libyubikey, json_c }:
|
2014-10-25 01:36:51 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "yubikey-personalization";
|
2019-07-03 21:45:02 +02:00
|
|
|
version = "1.20.0";
|
2014-10-25 01:36:51 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://developers.yubico.com/yubikey-personalization/Releases/ykpers-${version}.tar.gz";
|
2019-07-03 21:45:02 +02:00
|
|
|
sha256 = "14wvlwqnwj0gllkpvfqiy8ns938bwvjsz8x1hmymmx32m074vj0f";
|
2014-10-25 01:36:51 +02:00
|
|
|
};
|
|
|
|
|
2015-09-22 20:10:11 +02:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
2020-04-24 23:42:01 +02:00
|
|
|
buildInputs = [ libusb1 libyubikey json_c ];
|
2014-10-25 01:36:51 +02:00
|
|
|
|
|
|
|
configureFlags = [
|
|
|
|
"--with-backend=libusb-1.0"
|
|
|
|
];
|
|
|
|
|
2016-05-08 20:52:09 +02:00
|
|
|
doCheck = true;
|
|
|
|
|
2015-03-18 19:16:24 +01:00
|
|
|
postInstall = ''
|
2016-05-08 20:52:09 +02:00
|
|
|
# Don't use 70-yubikey.rules because it depends on ConsoleKit
|
2016-05-09 14:16:58 +02:00
|
|
|
install -D -t $out/lib/udev/rules.d 69-yubikey.rules
|
2015-03-18 19:16:24 +01:00
|
|
|
'';
|
|
|
|
|
2014-10-25 01:36:51 +02:00
|
|
|
meta = with stdenv.lib; {
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://developers.yubico.com/yubikey-personalization";
|
2016-06-20 12:53:46 +02:00
|
|
|
description = "A library and command line tool to personalize YubiKeys";
|
2014-10-25 01:36:51 +02:00
|
|
|
license = licenses.bsd2;
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|