nitrokey-app2: init at 2.1.2
This commit is contained in:
parent
ee8b4482ab
commit
246013fb25
2 changed files with 53 additions and 0 deletions
51
pkgs/tools/security/nitrokey-app2/default.nix
Normal file
51
pkgs/tools/security/nitrokey-app2/default.nix
Normal file
|
@ -0,0 +1,51 @@
|
|||
{ lib
|
||||
, python3
|
||||
, fetchFromGitHub
|
||||
, pynitrokey
|
||||
, wrapQtAppsHook
|
||||
}:
|
||||
|
||||
python3.pkgs.buildPythonApplication rec {
|
||||
pname = "nitrokey-app2";
|
||||
version = "2.1.2";
|
||||
format = "flit";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "Nitrokey";
|
||||
repo = "nitrokey-app2";
|
||||
rev = "v${version}";
|
||||
hash = "sha256-VyhIFNXxH/FohgjhBeZXoQYppP7PEz+ei0qzsWz1xhk=";
|
||||
};
|
||||
|
||||
preBuild = ''
|
||||
make build-ui
|
||||
'';
|
||||
|
||||
nativeBuildInputs = with python3.pkgs; [
|
||||
pyqt5
|
||||
wrapQtAppsHook
|
||||
];
|
||||
|
||||
dontWrapQtApps = true;
|
||||
|
||||
propagatedBuildInputs = with python3.pkgs; [
|
||||
pynitrokey
|
||||
pyudev
|
||||
pyqt5
|
||||
pyqt5-stubs
|
||||
qt-material
|
||||
];
|
||||
|
||||
preFixup = ''
|
||||
wrapQtApp "$out/bin/nitrokeyapp" \
|
||||
--set-default CRYPTOGRAPHY_OPENSSL_NO_LEGACY 1
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "This application allows to manage Nitrokey 3 devices";
|
||||
homepage = "https://github.com/Nitrokey/nitrokey-app2";
|
||||
license = licenses.asl20;
|
||||
maintainers = with maintainers; [ _999eagle ];
|
||||
mainProgram = "nitrokeyapp";
|
||||
};
|
||||
}
|
|
@ -40922,6 +40922,8 @@ with pkgs;
|
|||
|
||||
nitrokey-app = libsForQt5.callPackage ../tools/security/nitrokey-app { };
|
||||
|
||||
nitrokey-app2 = libsForQt5.callPackage ../tools/security/nitrokey-app2 { };
|
||||
|
||||
fpm2 = callPackage ../tools/security/fpm2 { };
|
||||
|
||||
simplenote = callPackage ../applications/misc/simplenote { };
|
||||
|
|
Loading…
Reference in a new issue