nitrokey-app2: init at 2.1.2

This commit is contained in:
Sophie Tauchert 2023-07-18 21:30:54 +02:00
parent ee8b4482ab
commit 246013fb25
No known key found for this signature in database
GPG key ID: 52701DE5F5F51125
2 changed files with 53 additions and 0 deletions

View 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";
};
}

View file

@ -40922,6 +40922,8 @@ with pkgs;
nitrokey-app = libsForQt5.callPackage ../tools/security/nitrokey-app { }; nitrokey-app = libsForQt5.callPackage ../tools/security/nitrokey-app { };
nitrokey-app2 = libsForQt5.callPackage ../tools/security/nitrokey-app2 { };
fpm2 = callPackage ../tools/security/fpm2 { }; fpm2 = callPackage ../tools/security/fpm2 { };
simplenote = callPackage ../applications/misc/simplenote { }; simplenote = callPackage ../applications/misc/simplenote { };