13 , yubikey-personalization
17 pname = "yubikey-manager-qt";
21 url = "https://developers.yubico.com/yubikey-manager-qt/Releases/yubikey-manager-qt-${version}.tar.gz";
22 hash = "sha256-6bKeR3UX2DhXGcKJ1bxvT1aLTgCfc+aNo6ckE89NV+I=";
26 python3.pkgs.wrapPython
32 substituteInPlace ykman-gui/deployment.pri --replace '/usr/bin' "$out/bin"
44 (yubikey-manager.override { python3Packages = python3.pkgs; })
49 install -D -m0644 resources/ykman-gui.desktop "$out/share/applications/ykman-gui.desktop"
50 substituteInPlace "$out/share/applications/ykman-gui.desktop" \
51 --replace Exec=ykman-gui "Exec=$out/bin/ykman-gui"
54 install -Dt $out/share/ykman-gui/icons resources/icons/*.{icns,ico}
55 install -D -m0644 resources/icons/ykman.png "$out/share/icons/hicolor/128x128/apps/ykman.png"
56 ln -s -- "$out/share/icons/hicolor/128x128/apps/ykman.png" "$out/share/icons/hicolor/128x128/apps/ykman-gui.png"
57 for SIZE in 16 24 32 48 64 96; do
58 # set modify/create for reproducible builds
59 convert -scale ''${SIZE} +set date:create +set date:modify \
60 resources/icons/ykman.png ykman.png
62 imageFolder="$out/share/icons/hicolor/''${SIZE}x''${SIZE}/apps"
63 install -D -m0644 ykman.png "$imageFolder/ykman.png"
64 ln -s -- "$imageFolder/ykman.png" "$imageFolder/ykman-gui.png"
66 unset SIZE imageFolder
70 "--prefix" "LD_LIBRARY_PATH" ":" (lib.makeLibraryPath [ pcsclite yubikey-personalization ])
74 buildPythonPath "$pythonPath"
75 qtWrapperArgs+=(--prefix PYTHONPATH : "$program_PYTHONPATH")
79 description = "Cross-platform application for configuring any YubiKey over all USB interfaces";
80 homepage = "https://developers.yubico.com/yubikey-manager-qt/";
81 license = licenses.bsd2;
82 maintainers = [ maintainers.cbley ];
83 mainProgram = "ykman-gui";
84 platforms = platforms.linux;