nixpkgs/pkgs/tools/misc/yubikey-personalization/default.nix
2014-11-26 15:47:43 -08:00

25 lines
765 B
Nix

{ stdenv, fetchurl, pkgconfig, libusb, libyubikey, json_c }:
stdenv.mkDerivation rec {
name = "yubikey-personalization-${version}";
version = "1.16.1";
src = fetchurl {
url = "https://developers.yubico.com/yubikey-personalization/Releases/ykpers-${version}.tar.gz";
sha256 = "1zivikg1ndxziwdmy2x66f9x0jxwbl0km4vxr5wgjsk94q6h45li";
};
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 ];
};
}