From 6c49f13575b9b639ab80629c6a1d3a862476a9bf Mon Sep 17 00:00:00 2001 From: Michael Daniels Date: Fri, 23 May 2025 10:45:42 -0400 Subject: [PATCH] superfile: 1.2.1 -> 1.3.1 Upstream added tests that reference the home directory, so added writetableTmpDirAsHomeHook. I also added passthru.updateScript. Diff: https://github.com/yorukot/superfile/compare/refs/tags/v1.2.1...refs/tags/v1.3.1 Changelogs: * https://github.com/yorukot/superfile/blob/v1.3.0/changelog.md * https://github.com/yorukot/superfile/releases/tag/v1.3.1 --- pkgs/by-name/su/superfile/package.nix | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/pkgs/by-name/su/superfile/package.nix b/pkgs/by-name/su/superfile/package.nix index 67c4cebfbe82..66c8a76d3ab1 100644 --- a/pkgs/by-name/su/superfile/package.nix +++ b/pkgs/by-name/su/superfile/package.nix @@ -2,9 +2,11 @@ lib, buildGoModule, fetchFromGitHub, + nix-update-script, + writableTmpDirAsHomeHook, }: let - version = "1.2.1"; + version = "1.3.1"; tag = "v${version}"; in buildGoModule { @@ -15,16 +17,23 @@ buildGoModule { owner = "yorukot"; repo = "superfile"; inherit tag; - hash = "sha256-yClDrDpt6QUWeAtWkG0tkmFqnaviRixz6Kez0q4cRuk="; + hash = "sha256-GlPePeINZ6KL3RRqfQQFYsEdd+70bRJcMqMVnUmgo/I="; }; - vendorHash = "sha256-STiuaNcmoviHBXGcSPPs39sICsks3Z8I3ANdnlUqA/k="; + vendorHash = "sha256-ArsB0B67ymuzxTXfaUuWiRrgVCrZhmGMbJUl2u+thUw="; ldflags = [ "-s" "-w" ]; + nativeCheckInputs = [ writableTmpDirAsHomeHook ]; + + # Upstream notes that this could be flakey, and it consistently fails for me. + checkFlags = [ "-skip=^TestReturnDirElement/Sort_by_Date$" ]; + + passthru.updateScript = nix-update-script { }; + meta = { description = "Pretty fancy and modern terminal file manager"; homepage = "https://github.com/yorukot/superfile";