From 8c4e70501b972f3ce3c7d3b0d6aec52c8b51ce7b Mon Sep 17 00:00:00 2001 From: Ryan Omasta Date: Fri, 5 Jun 2026 23:49:08 -0600 Subject: [PATCH] picocrypt-ng: 2.10 -> 2.17 https://github.com/Picocrypt-NG/Picocrypt-NG/releases/tag/2.17 --- pkgs/by-name/pi/picocrypt-ng/package.nix | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/pkgs/by-name/pi/picocrypt-ng/package.nix b/pkgs/by-name/pi/picocrypt-ng/package.nix index 4ef584d36a41..15476f24b768 100644 --- a/pkgs/by-name/pi/picocrypt-ng/package.nix +++ b/pkgs/by-name/pi/picocrypt-ng/package.nix @@ -16,18 +16,19 @@ buildGoModule (finalAttrs: { pname = "picocrypt-ng"; - version = "2.10"; + version = "2.17"; src = fetchFromGitHub { owner = "Picocrypt-NG"; repo = "Picocrypt-NG"; - tag = finalAttrs.version; - hash = "sha256-Rp7BgtJnV3fPed/QlWSxH8nL7cCTgMDpRGcgX5VI2l0="; + # Rewritten git history many times + rev = "424db6105588e9fe6b929b6731ace4556a12f172"; + hash = "sha256-Bj0LK6si1ocGriRJf5GHZ/Z2xVhtyCIiv7H5+h8Dong="; }; sourceRoot = "${finalAttrs.src.name}/src"; - vendorHash = "sha256-yAM1jzebUlNkVWiY8lPtlelfqpFQonNcAqNmmghCdPU="; + vendorHash = "sha256-KaTatNjSUnQC44UsV3LFOlkad8WqLfTPFFff8Dn13DA="; ldflags = [ "-s" @@ -51,7 +52,14 @@ buildGoModule (finalAttrs: { ]; # git ls-files doesn't work as source is not a git repo - checkFlags = [ "-skip=^TestOldVersionLiteralsAreAllowlisted$" ]; + checkFlags = + let + skippedTests = [ + "TestOldVersionLiteralsAreAllowlisted" + "TestLinuxAppIdentityContract" + ]; + in + [ "-skip=^${builtins.concatStringsSep "$|^" skippedTests}$" ]; env.CGO_ENABLED = 1;