yubikey-{personalization-gui,manager-qt}: drop (#414645)

This commit is contained in:
Aleksana
2025-06-10 15:55:33 +08:00
committed by GitHub
5 changed files with 2 additions and 180 deletions
@@ -1,98 +0,0 @@
{
lib,
mkDerivation,
fetchurl,
imagemagick,
pcsclite,
pyotherside,
python3,
qmake,
qtbase,
qtgraphicaleffects,
qtquickcontrols2,
yubikey-manager,
yubikey-personalization,
}:
mkDerivation rec {
pname = "yubikey-manager-qt";
version = "1.2.5";
src = fetchurl {
url = "https://developers.yubico.com/yubikey-manager-qt/Releases/yubikey-manager-qt-${version}.tar.gz";
hash = "sha256-6bKeR3UX2DhXGcKJ1bxvT1aLTgCfc+aNo6ckE89NV+I=";
};
patches = [ ./remove-upload-import.diff ];
nativeBuildInputs = [
python3.pkgs.wrapPython
qmake
imagemagick
];
postPatch = ''
substituteInPlace ykman-gui/deployment.pri --replace '/usr/bin' "$out/bin"
'';
buildInputs = [
pyotherside
python3
qtbase
qtgraphicaleffects
qtquickcontrols2
];
pythonPath = [
(yubikey-manager.override { python3Packages = python3.pkgs; })
];
postInstall = ''
# Desktop files
install -D -m0644 resources/ykman-gui.desktop "$out/share/applications/ykman-gui.desktop"
substituteInPlace "$out/share/applications/ykman-gui.desktop" \
--replace Exec=ykman-gui "Exec=$out/bin/ykman-gui"
# Icons
install -Dt $out/share/ykman-gui/icons resources/icons/*.{icns,ico}
install -D -m0644 resources/icons/ykman.png "$out/share/icons/hicolor/128x128/apps/ykman.png"
ln -s -- "$out/share/icons/hicolor/128x128/apps/ykman.png" "$out/share/icons/hicolor/128x128/apps/ykman-gui.png"
for SIZE in 16 24 32 48 64 96; do
# set modify/create for reproducible builds
convert -scale ''${SIZE} +set date:create +set date:modify \
resources/icons/ykman.png ykman.png
imageFolder="$out/share/icons/hicolor/''${SIZE}x''${SIZE}/apps"
install -D -m0644 ykman.png "$imageFolder/ykman.png"
ln -s -- "$imageFolder/ykman.png" "$imageFolder/ykman-gui.png"
done
unset SIZE imageFolder
'';
qtWrapperArgs = [
"--prefix"
"LD_LIBRARY_PATH"
":"
(lib.makeLibraryPath [
pcsclite
yubikey-personalization
])
];
preFixup = ''
buildPythonPath "$pythonPath"
qtWrapperArgs+=(--prefix PYTHONPATH : "$program_PYTHONPATH")
'';
meta = with lib; {
description = "Cross-platform application for configuring any YubiKey over all USB interfaces";
homepage = "https://developers.yubico.com/yubikey-manager-qt/";
knownVulnerabilities = [
"Yubico has announced the End of Life of YubiKey Manager QT. Upstream recommends yubioath-flutter to configure a YubiKey. yubikey-manager-qt will be dropped after NixOS 25.05."
];
license = licenses.bsd2;
maintainers = [ maintainers.cbley ];
mainProgram = "ykman-gui";
platforms = platforms.linux;
};
}
@@ -1,16 +0,0 @@
--- a/ykman-gui/py/yubikey.py 2025-01-08 19:42:20.058393985 +0100
+++ b/ykman-gui/py/yubikey.py 2025-01-08 19:44:12.520364702 +0100
@@ -50,12 +50,10 @@
if int(ykman_v.split(".")[0] ) > 4:
from yubikit.support import get_name
from ykman.device import list_all_devices, scan_devices
- from ykman.otp import (
- _PrepareUploadFailed as PrepareUploadFailed
- , _prepare_upload_key as prepare_upload_key, generate_static_pw)
+ from ykman.otp import generate_static_pw
else:
from ykman import connect_to_device, scan_devices, get_name
from ykman.otp import PrepareUploadFailed, prepare_upload_key, generate_static_pw
from fido2.ctap2 import Ctap2, ClientPin
@@ -1,62 +0,0 @@
{
stdenv,
lib,
fetchurl,
mkDerivation,
pkg-config,
qtbase,
qmake,
imagemagick,
libyubikey,
yubikey-personalization,
}:
mkDerivation rec {
pname = "yubikey-personalization-gui";
version = "3.1.25";
src = fetchurl {
url = "https://developers.yubico.com/yubikey-personalization-gui/Releases/yubikey-personalization-gui-${version}.tar.gz";
sha256 = "1knyv5yss8lhzaff6jpfqv12fjf1b8b21mfxzx3qi0hw4nl8n2v8";
};
nativeBuildInputs = [
pkg-config
qmake
imagemagick
];
buildInputs = [
yubikey-personalization
qtbase
libyubikey
];
installPhase = ''
install -D -m0755 build/release/yubikey-personalization-gui "$out/bin/yubikey-personalization-gui"
install -D -m0644 resources/lin/yubikey-personalization-gui.1 "$out/share/man/man1/yubikey-personalization-gui.1"
# Desktop files
install -D -m0644 resources/lin/yubikey-personalization-gui.desktop "$out/share/applications/yubikey-personalization-gui.desktop"
# Icons
install -D -m0644 resources/lin/yubikey-personalization-gui.xpm "$out/share/pixmaps/yubikey-personalization-gui.xpm"
install -D -m0644 resources/lin/yubikey-personalization-gui.png "$out/share/icons/hicolor/128x128/apps/yubikey-personalization-gui.png"
for SIZE in 16 24 32 48 64 96; do
# set modify/create for reproducible builds
convert -scale ''${SIZE} +set date:create +set date:modify \
resources/lin/yubikey-personalization-gui.png \
yubikey-personalization-gui.png
install -D -m0644 yubikey-personalization-gui.png "$out/share/icons/hicolor/''${SIZE}x''${SIZE}/apps/yubikey-personalization-gui.png"
done
'';
meta = with lib; {
broken = stdenv.hostPlatform.isDarwin;
homepage = "https://developers.yubico.com/yubikey-personalization-gui";
description = "QT based cross-platform utility designed to facilitate reconfiguration of the Yubikey";
license = licenses.bsd2;
platforms = platforms.unix;
mainProgram = "yubikey-personalization-gui";
};
}
+2
View File
@@ -2116,6 +2116,8 @@ mapAliases {
yandex-browser-corporate = throw "'yandex-browser-corporate' has been removed, as it was broken and unmaintained"; # Added 2025-04-17
youtrack_2022_3 = throw "'youtrack_2022_3' has been removed as it was deprecated. Please update to the 'youtrack' package."; # Added 2024-10-17
yrd = throw "'yrd' has been removed, as it was broken and unmaintained"; # added 2024-05-27
yubikey-manager-qt = throw "'yubikey-manager-qt' has been removed due to being archived upstream. Consider using 'yubioath-flutter' instead."; # Added 2025-06-07
yubikey-personalization-gui = throw "'yubikey-personalization-gui' has been removed due to being archived upstream. Consider using 'yubioath-flutter' instead."; # Added 2025-06-07
yuzu-ea = throw "yuzu-ea has been removed from nixpkgs, as it has been taken down upstream"; # Added 2024-03-04
yuzu-early-access = throw "yuzu-early-access has been removed from nixpkgs, as it has been taken down upstream"; # Added 2024-03-04
yuzu = throw "yuzu has been removed from nixpkgs, as it has been taken down upstream"; # Added 2024-03-04
-4
View File
@@ -9816,10 +9816,6 @@ with pkgs;
xgboostWithCuda = xgboost.override { cudaSupport = true; };
yubikey-manager-qt = libsForQt5.callPackage ../tools/misc/yubikey-manager-qt { };
yubikey-personalization-gui = libsForQt5.callPackage ../tools/misc/yubikey-personalization-gui { };
zlib = callPackage ../development/libraries/zlib {
stdenv =
# zlib is a dependency of xcbuild. Avoid an infinite recursion by using a bootstrap stdenv