From ec8cc3e7175aa57d0edd2fb5a6e6e8cd319da183 Mon Sep 17 00:00:00 2001
From: Fernando Rodrigues <alpha@sigmasquadron.net>
Date: Thu, 31 Oct 2024 15:42:01 +0000
Subject: [PATCH] gnuk: set as broken, use correct homepage in meta and remove
 nested with expression

Signed-off-by: Fernando Rodrigues <alpha@sigmasquadron.net>
---
 pkgs/misc/gnuk/default.nix | 13 ++++++++-----
 1 file changed, 8 insertions(+), 5 deletions(-)

diff --git a/pkgs/misc/gnuk/default.nix b/pkgs/misc/gnuk/default.nix
index af4e7d371f1e..98eb9c12aef0 100644
--- a/pkgs/misc/gnuk/default.nix
+++ b/pkgs/misc/gnuk/default.nix
@@ -7,7 +7,7 @@
   makeWrapper,
   python3Packages,
 
-  # Extra options
+  # Default FSIJ IDs
   vid ? "234b",
   pid ? "0000",
 }:
@@ -30,6 +30,7 @@ stdenv.mkDerivation (finalAttrs: {
     binutils-arm-embedded
     makeWrapper
   ];
+
   buildInputs = with python3Packages; [
     python
     pyusb
@@ -61,10 +62,12 @@ stdenv.mkDerivation (finalAttrs: {
     chmod +x $out/bin/{unlock,flash}
   '';
 
-  meta = with lib; {
-    homepage = "https://www.fsij.org/doc-gnuk/";
+  meta = {
+    homepage = "https://www.fsij.org/category/gnuk.html";
     description = "Implementation of USB cryptographic token for gpg";
-    license = licenses.gpl3;
-    platforms = with platforms; linux;
+    license = lib.licenses.gpl3;
+    platforms = lib.platforms.linux;
+    maintainers = [ ];
+    broken = true; # Needs Picolib, which is not packaged in Nixpkgs.
   };
 })