2014-10-24 23:37:22 +00:00
|
|
|
{ stdenv, fetchurl, pkgconfig, yubikey-personalization, qt, libyubikey }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2015-09-18 18:23:03 +00:00
|
|
|
name = "yubikey-personalization-gui-3.1.21";
|
2014-10-24 23:37:22 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://developers.yubico.com/yubikey-personalization-gui/Releases/${name}.tar.gz";
|
2015-09-18 18:23:03 +00:00
|
|
|
sha256 = "1b5mf6h3jj35f3xwzdbqsyzk171sn8rp9ym4vipmzzcg10jxyp0m";
|
2014-10-24 23:37:22 +00:00
|
|
|
};
|
|
|
|
|
2015-09-18 18:23:03 +00:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
|
|
buildInputs = [ yubikey-personalization qt libyubikey ];
|
2014-10-24 23:37:22 +00:00
|
|
|
|
|
|
|
configurePhase = ''
|
|
|
|
qmake
|
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
cp build/release/yubikey-personalization-gui $out/bin
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = https://developers.yubico.com/yubikey-personalization-gui;
|
|
|
|
description = "a QT based cross-platform utility designed to facilitate reconfiguration of the Yubikey";
|
|
|
|
license = licenses.bsd2;
|
|
|
|
platforms = platforms.unix;
|
|
|
|
maintainers = with maintainers; [ wkennington ];
|
|
|
|
};
|
|
|
|
}
|