2021-02-05 17:12:51 +00:00
|
|
|
{ lib, stdenv, bash-completion, cmake, fetchFromGitHub, hidapi, libusb1, pkg-config
|
2020-04-24 23:36:52 +00:00
|
|
|
, qtbase, qttranslations, qtsvg, wrapQtAppsHook }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "nitrokey-app";
|
2021-02-05 17:12:51 +00:00
|
|
|
version = "1.4.2";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Nitrokey";
|
|
|
|
repo = "nitrokey-app";
|
|
|
|
rev = "v${version}";
|
2021-02-05 17:12:51 +00:00
|
|
|
sha256 = "1k0w921hfrya4q2r7bqn7kgmwvwb7c15k9ymlbnksmfc9yyjyfcv";
|
2020-04-24 23:36:52 +00:00
|
|
|
fetchSubmodules = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
bash-completion
|
|
|
|
hidapi
|
|
|
|
libusb1
|
|
|
|
qtbase
|
|
|
|
qttranslations
|
|
|
|
qtsvg
|
|
|
|
];
|
|
|
|
nativeBuildInputs = [
|
|
|
|
cmake
|
2021-02-05 17:12:51 +00:00
|
|
|
pkg-config
|
2020-04-24 23:36:52 +00:00
|
|
|
wrapQtAppsHook
|
|
|
|
];
|
|
|
|
cmakeFlags = [ "-DCMAKE_BUILD_TYPE=Release" ];
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Provides extra functionality for the Nitrokey Pro and Storage";
|
|
|
|
longDescription = ''
|
2022-01-27 00:19:43 +00:00
|
|
|
The nitrokey-app provides a QT system tray widget with which you can
|
2020-04-24 23:36:52 +00:00
|
|
|
access the extra functionality of a Nitrokey Storage or Nitrokey Pro.
|
|
|
|
See https://www.nitrokey.com/ for more information.
|
|
|
|
'';
|
|
|
|
homepage = "https://github.com/Nitrokey/nitrokey-app";
|
|
|
|
license = licenses.gpl3;
|
2022-08-12 12:06:08 +00:00
|
|
|
maintainers = with maintainers; [ kaiha ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|