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 {
|
stdenv.mkDerivation rec {
|
||||||
name = "nitrokey-app-${version}";
|
name = "nitrokey-app-${version}";
|
||||||
version = "1.2";
|
version = "1.3.1";
|
||||||
|
|
||||||
# We use fetchgit instead of fetchFromGitHub because of necessary git submodules
|
# We use fetchgit instead of fetchFromGitHub because of necessary git submodules
|
||||||
src = fetchgit {
|
src = fetchgit {
|
||||||
url = "https://github.com/Nitrokey/nitrokey-app.git";
|
url = "https://github.com/Nitrokey/nitrokey-app.git";
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "0mm6vlgxlmpahmmcn4awnfpx5rx5bj8m44cywhgxlmz012x73hzi";
|
sha256 = "0zf2f7g5scqd5xfzvmmpvfc7d1w66rf22av0qv6s37875c61j9r9";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
postPatch = ''
|
||||||
|
substituteInPlace libnitrokey/CMakeLists.txt \
|
||||||
|
--replace '/data/41-nitrokey.rules' '/libnitrokey/data/41-nitrokey.rules'
|
||||||
|
'';
|
||||||
|
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
bash-completion
|
bash-completion
|
||||||
hidapi
|
hidapi
|
||||||
libusb1
|
libusb1
|
||||||
qt5.qtbase
|
qtbase
|
||||||
qt5.qttranslations
|
qttranslations
|
||||||
|
qtsvg
|
||||||
];
|
];
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
cmake
|
cmake
|
||||||
pkgconfig
|
pkgconfig
|
||||||
|
makeWrapper
|
||||||
];
|
];
|
||||||
cmakeFlags = "-DCMAKE_BUILD_TYPE=Release";
|
cmakeFlags = "-DCMAKE_BUILD_TYPE=Release";
|
||||||
|
|
||||||
|
postFixup = ''
|
||||||
|
wrapProgram $out/bin/nitrokey-app \
|
||||||
|
--prefix QT_PLUGIN_PATH : "${qtbase}/${qtbase.qtPluginPrefix}"
|
||||||
|
'';
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
description = "Provides extra functionality for the Nitrokey Pro and Storage";
|
description = "Provides extra functionality for the Nitrokey Pro and Storage";
|
||||||
longDescription = ''
|
longDescription = ''
|
||||||
|
@ -10,12 +10,12 @@ stdenv.mkDerivation {
|
|||||||
dontBuild = true;
|
dontBuild = true;
|
||||||
|
|
||||||
patchPhase = ''
|
patchPhase = ''
|
||||||
substituteInPlace data/41-nitrokey.rules --replace plugdev "${group}"
|
substituteInPlace libnitrokey/data/41-nitrokey.rules --replace plugdev "${group}"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
mkdir -p $out/etc/udev/rules.d
|
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 = {
|
meta = {
|
||||||
|
@ -21879,7 +21879,7 @@ with pkgs;
|
|||||||
|
|
||||||
xrq = callPackage ../applications/misc/xrq { };
|
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 { };
|
nitrokey-udev-rules = callPackage ../tools/security/nitrokey-app/udev-rules.nix { };
|
||||||
|
|
||||||
fpm2 = callPackage ../tools/security/fpm2 { };
|
fpm2 = callPackage ../tools/security/fpm2 { };
|
||||||
|
Loading…
x
Reference in New Issue
Block a user