2014-10-24 23:36:51 +00:00
|
|
|
{ stdenv, fetchurl, pkgconfig, libusb, libyubikey, json_c }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "yubikey-personalization-${version}";
|
2014-11-26 23:47:36 +00:00
|
|
|
version = "1.16.1";
|
2014-10-24 23:36:51 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://developers.yubico.com/yubikey-personalization/Releases/ykpers-${version}.tar.gz";
|
2014-11-26 23:47:36 +00:00
|
|
|
sha256 = "1zivikg1ndxziwdmy2x66f9x0jxwbl0km4vxr5wgjsk94q6h45li";
|
2014-10-24 23:36:51 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ pkgconfig libusb libyubikey json_c ];
|
|
|
|
|
|
|
|
configureFlags = [
|
|
|
|
"--with-backend=libusb-1.0"
|
|
|
|
];
|
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|