nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 stdenv,
4 cmake,
5 fetchFromGitHub,
6 pkg-config,
7 wrapQtAppsHook,
8 libnitrokey,
9 cppcodec,
10 qttools,
11}:
12
13stdenv.mkDerivation rec {
14 pname = "nitrokey-app";
15 version = "1.4.2";
16
17 src = fetchFromGitHub {
18 owner = "Nitrokey";
19 repo = "nitrokey-app";
20 tag = "v${version}";
21 hash = "sha256-c6EC5uuMna07xVHDRFq0UDwuSeopZTmZGZ9ZD5zaq8Y=";
22 };
23
24 nativeBuildInputs = [
25 cmake
26 pkg-config
27 wrapQtAppsHook
28 qttools
29 ];
30
31 cmakeFlags = [
32 "-DADD_GIT_INFO=OFF"
33 "-DBASH_COMPLETION_PATH=share/bash-completion/completions"
34 ];
35
36 buildInputs = [
37 libnitrokey
38 cppcodec
39 ];
40
41 meta = with lib; {
42 description = "Provides extra functionality for the Nitrokey Pro and Storage";
43 mainProgram = "nitrokey-app";
44 longDescription = ''
45 The nitrokey-app provides a QT system tray widget with which you can
46 access the extra functionality of a Nitrokey Storage or Nitrokey Pro.
47 See https://www.nitrokey.com/ for more information.
48 '';
49 homepage = "https://github.com/Nitrokey/nitrokey-app";
50 changelog = "https://github.com/Nitrokey/nitrokey-app/releases/tag/v${version}";
51 license = licenses.gpl3Plus;
52 maintainers = with maintainers; [
53 kaiha
54 panicgh
55 ];
56 };
57}