nitrokey-app: 1.2 -> 1.3.1

This commit is contained in:
Franz Pletz 2018-07-15 21:14:19 +02:00
parent 29da51c8e9
commit 472ab64e0f
No known key found for this signature in database
GPG Key ID: 846FDED7792617B4
3 changed files with 21 additions and 8 deletions

View File

@ -1,29 +1,42 @@
{ stdenv, bash-completion, cmake, fetchgit, hidapi, libusb1, pkgconfig, qt5 }:
{ stdenv, makeWrapper, bash-completion, cmake, fetchgit, hidapi, libusb1, pkgconfig
, qtbase, qttranslations, qtsvg }:
stdenv.mkDerivation rec {
name = "nitrokey-app-${version}";
version = "1.2";
version = "1.3.1";
# We use fetchgit instead of fetchFromGitHub because of necessary git submodules
src = fetchgit {
url = "https://github.com/Nitrokey/nitrokey-app.git";
rev = "v${version}";
sha256 = "0mm6vlgxlmpahmmcn4awnfpx5rx5bj8m44cywhgxlmz012x73hzi";
sha256 = "0zf2f7g5scqd5xfzvmmpvfc7d1w66rf22av0qv6s37875c61j9r9";
};
postPatch = ''
substituteInPlace libnitrokey/CMakeLists.txt \
--replace '/data/41-nitrokey.rules' '/libnitrokey/data/41-nitrokey.rules'
'';
buildInputs = [
bash-completion
hidapi
libusb1
qt5.qtbase
qt5.qttranslations
qtbase
qttranslations
qtsvg
];
nativeBuildInputs = [
cmake
pkgconfig
makeWrapper
];
cmakeFlags = "-DCMAKE_BUILD_TYPE=Release";
postFixup = ''
wrapProgram $out/bin/nitrokey-app \
--prefix QT_PLUGIN_PATH : "${qtbase}/${qtbase.qtPluginPrefix}"
'';
meta = with stdenv.lib; {
description = "Provides extra functionality for the Nitrokey Pro and Storage";
longDescription = ''

View File

@ -10,12 +10,12 @@ stdenv.mkDerivation {
dontBuild = true;
patchPhase = ''
substituteInPlace data/41-nitrokey.rules --replace plugdev "${group}"
substituteInPlace libnitrokey/data/41-nitrokey.rules --replace plugdev "${group}"
'';
installPhase = ''
mkdir -p $out/etc/udev/rules.d
cp data/41-nitrokey.rules $out/etc/udev/rules.d
cp libnitrokey/data/41-nitrokey.rules $out/etc/udev/rules.d
'';
meta = {

View File

@ -21879,7 +21879,7 @@ with pkgs;
xrq = callPackage ../applications/misc/xrq { };
nitrokey-app = callPackage ../tools/security/nitrokey-app { };
nitrokey-app = libsForQt5.callPackage ../tools/security/nitrokey-app { };
nitrokey-udev-rules = callPackage ../tools/security/nitrokey-app/udev-rules.nix { };
fpm2 = callPackage ../tools/security/fpm2 { };