@@ -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 = ''