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";
|
2024-01-02 11:29:13 +00:00
|
|
|
rev = "refs/tags/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; {
|
2024-01-02 11:29:13 +00:00
|
|
|
description = "Provides extra functionality for the Nitrokey Pro and Storage";
|
|
|
|
longDescription = ''
|
|
|
|
The nitrokey-app provides a QT system tray widget with which you can
|
|
|
|
access the extra functionality of a Nitrokey Storage or Nitrokey Pro.
|
|
|
|
See https://www.nitrokey.com/ for more information.
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
2024-01-02 11:29:13 +00:00
|
|
|
homepage = "https://github.com/Nitrokey/nitrokey-app";
|
|
|
|
changelog = "https://github.com/Nitrokey/nitrokey-app/releases/tag/v${version}";
|
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
maintainers = with maintainers; [ kaiha panicgh ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|