2023-03-30 22:05:00 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, cmake
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pkg-config
|
|
|
|
, wrapQtAppsHook
|
|
|
|
, libnitrokey
|
|
|
|
, cppcodec
|
2023-10-09 19:29:22 +00:00
|
|
|
, qttools
|
2023-03-30 22:05:00 +00:00
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
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}";
|
2023-03-30 22:05:00 +00:00
|
|
|
hash = "sha256-c6EC5uuMna07xVHDRFq0UDwuSeopZTmZGZ9ZD5zaq8Y=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
cmake
|
2021-02-05 17:12:51 +00:00
|
|
|
pkg-config
|
2020-04-24 23:36:52 +00:00
|
|
|
wrapQtAppsHook
|
2023-10-09 19:29:22 +00:00
|
|
|
qttools
|
2023-03-30 22:05:00 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
cmakeFlags = [
|
|
|
|
"-DADD_GIT_INFO=OFF"
|
|
|
|
"-DBASH_COMPLETION_PATH=share/bash-completion/completions"
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
libnitrokey
|
|
|
|
cppcodec
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
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;
|
2023-03-30 22:05:00 +00:00
|
|
|
maintainers = with maintainers; [ kaiha panicgh ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|