nitrokey-app: init at 0.4.0
Provides extra functionality for the Nitrokey Pro and Storage. See https://github.com/Nitrokey/nitrokey-app and https://www.nitrokey.com/download for information about the nitrokey-app.
This commit is contained in:
parent
ce8d2aad27
commit
caeb218023
4 changed files with 88 additions and 0 deletions
35
pkgs/tools/security/nitrokey-app/FixInstallDestination.patch
Normal file
35
pkgs/tools/security/nitrokey-app/FixInstallDestination.patch
Normal file
|
@ -0,0 +1,35 @@
|
|||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
index 16393a8..3991d2a 100644
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -219,18 +219,18 @@ IF(NOT WIN32)
|
||||
# Install Nitrokey udev rules
|
||||
install(FILES
|
||||
${CMAKE_SOURCE_DIR}/data/40-nitrokey.rules
|
||||
- DESTINATION /etc/udev/rules.d
|
||||
+ DESTINATION etc/udev/rules.d
|
||||
)
|
||||
|
||||
# Install autocompletion scripts
|
||||
install(FILES
|
||||
${CMAKE_SOURCE_DIR}/data//bash-autocomplete/nitrokey-app
|
||||
- DESTINATION /etc/bash_completion.d
|
||||
+ DESTINATION etc/bash_completion.d
|
||||
)
|
||||
|
||||
install(FILES
|
||||
${CMAKE_SOURCE_DIR}/po/de_DE/nitrokey-app.mo
|
||||
- DESTINATION /usr/share/locale/de_DE/LC_MESSAGES
|
||||
+ DESTINATION share/locale/de_DE/LC_MESSAGES
|
||||
)
|
||||
|
||||
install(FILES
|
||||
@@ -238,7 +238,7 @@ IF(NOT WIN32)
|
||||
${CMAKE_SOURCE_DIR}/images/quit.png
|
||||
${CMAKE_SOURCE_DIR}/images/safe_zahlenkreis.png
|
||||
${CMAKE_SOURCE_DIR}/images/settings.png
|
||||
- DESTINATION /usr/share/nitrokey
|
||||
+ DESTINATION share/nitrokey
|
||||
)
|
||||
|
||||
ENDIF () # NOT WIN32
|
13
pkgs/tools/security/nitrokey-app/HeaderPath.patch
Normal file
13
pkgs/tools/security/nitrokey-app/HeaderPath.patch
Normal file
|
@ -0,0 +1,13 @@
|
|||
diff --git a/src/utils/hid_libusb.c b/src/utils/hid_libusb.c
|
||||
index bd8c14e..537292d 100644
|
||||
--- a/src/utils/hid_libusb.c
|
||||
+++ b/src/utils/hid_libusb.c
|
||||
@@ -44,7 +44,7 @@
|
||||
#include <wchar.h>
|
||||
|
||||
/* GNU / LibUSB */
|
||||
-#include "libusb.h"
|
||||
+#include "libusb-1.0/libusb.h"
|
||||
#include "iconv.h"
|
||||
|
||||
#include "hidapi.h"
|
38
pkgs/tools/security/nitrokey-app/default.nix
Normal file
38
pkgs/tools/security/nitrokey-app/default.nix
Normal file
|
@ -0,0 +1,38 @@
|
|||
{ stdenv, cmake, fetchFromGitHub, libappindicator-gtk2, libnotify, libusb1, pkgconfig
|
||||
, qt5 }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "nitrokey-app";
|
||||
version = "0.4";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "Nitrokey";
|
||||
repo = "nitrokey-app";
|
||||
rev = "v${version}";
|
||||
sha256 = "0h131847pllsr7rk7nn8vlj74byb5f14cl9h3g3pmlq5zj8ylfkx";
|
||||
};
|
||||
|
||||
buildInputs = [
|
||||
cmake
|
||||
libappindicator-gtk2
|
||||
libnotify
|
||||
libusb1
|
||||
pkgconfig
|
||||
qt5.qtbase
|
||||
];
|
||||
patches = [
|
||||
./FixInstallDestination.patch
|
||||
./HeaderPath.patch
|
||||
];
|
||||
meta = {
|
||||
description = "Provides extra functionality for the Nitrokey Pro and Storage";
|
||||
longDescription = ''
|
||||
The nitrokey-app provides a QT system tray widget with wich you can
|
||||
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;
|
||||
repositories.git = https://github.com/Nitrokey/nitrokey-app.git;
|
||||
license = stdenv.lib.licenses.gpl3;
|
||||
};
|
||||
}
|
|
@ -17225,4 +17225,6 @@ in
|
|||
zoom-us = qt55.callPackage ../applications/networking/instant-messengers/zoom-us {};
|
||||
|
||||
xulrunner = firefox-unwrapped;
|
||||
|
||||
nitrokey-app = callPackage ../tools/security/nitrokey-app { };
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue