git.iko.soy/typeable/nixpkgs
on master help sign in
nitrokey-app: 0.6.3 -> 1.0

The nitrokey-app is now fetched from git because a submodule is needed for compilation.

commitba002a4215b91ccad0464c29b10c5cc7a2714261 authorKai Harries <kai.harries@gmail.com> dateFri 5 May 2017, 22:15 (10 years ago) parentf0c08e3
3 files changed+12−35
pkgs/tools/security/nitrokey-app/FixInstallDestination.patch−11 pkgs/tools/security/nitrokey-app/HeaderPath.patch−13 pkgs/tools/security/nitrokey-app/default.nix+12−11
pkgs/tools/security/nitrokey-app/FixInstallDestination.patchdeleted−11
@@ -1,11 +0,0 @@
1−--- a/CMakeLists.txt
2−+++ b/CMakeLists.txt
3−@@ -273,7 +273,7 @@
4− # Install autocompletion scripts
5− install(FILES
6− ${CMAKE_SOURCE_DIR}/data/bash-autocomplete/nitrokey-app
7−- DESTINATION /etc/bash_completion.d
8−+ DESTINATION etc/bash_completion.d
9− )
10−
11− install(FILES
pkgs/tools/security/nitrokey-app/HeaderPath.patchdeleted−13
@@ -1,13 +0,0 @@
1−diff --git a/src/utils/hid_libusb.c b/src/utils/hid_libusb.c
2−index bd8c14e..537292d 100644
3−--- a/src/utils/hid_libusb.c
4−+++ b/src/utils/hid_libusb.c
5−@@ -44,7 +44,7 @@
6− #include <wchar.h>
7−
8− /* GNU / LibUSB */
9−-#include "libusb.h"
10−+#include "libusb-1.0/libusb.h"
11− #include "iconv.h"
12−
13− #include "hidapi.h"
pkgs/tools/security/nitrokey-app/default.nix+12−11
@@ -1,29 +1,30 @@
1−{ stdenv, cmake, fetchFromGitHub, libusb1, pkgconfig, qt5 }:
1+{ stdenv, cmake, fetchgit, hidapi, libusb1, pkgconfig, qt5 }:
22
33stdenv.mkDerivation rec {
44 name = "nitrokey-app";
5− version = "0.6.3";
5+ version = "1.0";
66
7− src = fetchFromGitHub {
8− owner = "Nitrokey";
9− repo = "nitrokey-app";
10− rev = "v${version}";
11− sha256 = "1l5l4lwxmyd3jrafw19g12sfc42nd43sv7h7i4krqxnkk6gfx11q";
7+ src = fetchgit {
8+ url = "https://github.com/Nitrokey/nitrokey-app.git";
9+ rev = "refs/tags/v${version}";
10+ sha256 = "0i910d1xrl4bfrg5ifkj3w4dp31igaxncy2yf97y4rsc8094bcb1";
1211 };
1312
1413 buildInputs = [
14+ hidapi
1515 libusb1
1616 qt5.qtbase
17+ qt5.qttranslations
1718 ];
1819 nativeBuildInputs = [
1920 cmake
2021 pkgconfig
2122 ];
22− patches = [
23− ./FixInstallDestination.patch
24− ./HeaderPath.patch
25− ];
2623 cmakeFlags = "-DHAVE_LIBAPPINDICATOR=NO";
24+ postPatch = ''
25+ substituteInPlace CMakeLists.txt --replace 'DESTINATION ''${UDEV_MAIN_DIR}' 'DESTINATION lib/udev/rules.d'
26+ substituteInPlace data/41-nitrokey.rules --replace 'plugdev' 'wheel'
27+ '';
2728 meta = with stdenv.lib; {
2829 description = "Provides extra functionality for the Nitrokey Pro and Storage";
2930 longDescription = ''