nitrokey-app2: 2.3.5 -> 2.4.1, fix SVG display (#439296)

This commit is contained in:
Nick Cao
2025-09-05 15:41:10 -04:00
committed by GitHub
2 changed files with 34 additions and 15 deletions
+33 -14
View File
@@ -1,30 +1,38 @@
{
lib,
stdenv,
python3,
buildPythonApplication,
fetchFromGitHub,
wrapQtAppsHook,
qtbase,
qtwayland,
qtsvg,
poetry-core,
fido2,
nitrokey,
pyside6,
usb-monitor,
qt6,
}:
python3.pkgs.buildPythonApplication rec {
pname = "nitrokey-app2";
version = "2.3.5";
pyproject = true;
let
inherit (qt6)
wrapQtAppsHook
qtbase
qtwayland
qtsvg
;
in
disabled = python3.pythonOlder "3.9";
buildPythonApplication rec {
pname = "nitrokey-app2";
version = "2.4.1";
pyproject = true;
src = fetchFromGitHub {
owner = "Nitrokey";
repo = "nitrokey-app2";
tag = "v${version}";
hash = "sha256-zhTDr4GyE4jridK3ee8ae3v5behMbuo86q9WdrBVqQg=";
hash = "sha256-nzhhtnKKOHA+Cw1y+BpYsyQklzkDnmFRKGIfaJ/dmaQ=";
};
nativeBuildInputs = with python3.pkgs; [
poetry-core
nativeBuildInputs = [
wrapQtAppsHook
];
@@ -36,7 +44,12 @@ python3.pkgs.buildPythonApplication rec {
qtsvg
];
propagatedBuildInputs = with python3.pkgs; [
build-system = [
poetry-core
];
dependencies = [
fido2
nitrokey
pyside6
usb-monitor
@@ -53,6 +66,12 @@ python3.pkgs.buildPythonApplication rec {
install -Dm755 meta/nk-app2.png $out/share/icons/hicolor/128x128/apps/com.nitrokey.nitrokey-app2.png
'';
# wrapQtApps only wrapps binary files and normally skips python programs.
# Manually pass the qtWrapperArgs from wrapQtAppsHook to wrap python programs.
preFixup = ''
makeWrapperArgs+=("''${qtWrapperArgs[@]}")
'';
meta = with lib; {
description = "This application allows to manage Nitrokey 3 devices";
homepage = "https://github.com/Nitrokey/nitrokey-app2";
+1 -1
View File
@@ -15397,7 +15397,7 @@ with pkgs;
nitrokey-app = libsForQt5.callPackage ../tools/security/nitrokey-app { };
nitrokey-app2 = qt6Packages.callPackage ../tools/security/nitrokey-app2 { };
nitrokey-app2 = python3Packages.callPackage ../tools/security/nitrokey-app2 { };
hy = with python3Packages; toPythonApplication hy;