mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-01 15:11:25 +00:00
nitrokey-app: 1.2 -> 1.3.1
This commit is contained in:
parent
29da51c8e9
commit
472ab64e0f
@ -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 = ''
|
||||
|
@ -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 = {
|
||||
|
@ -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 { };
|
||||
|
Loading…
Reference in New Issue
Block a user