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
This commit is contained in:
Michael Daniels 2025-05-23 10:45:42 -04:00
parent 04f5844e2e
commit 6c49f13575

View file

@ -2,9 +2,11 @@
lib, lib,
buildGoModule, buildGoModule,
fetchFromGitHub, fetchFromGitHub,
nix-update-script,
writableTmpDirAsHomeHook,
}: }:
let let
version = "1.2.1"; version = "1.3.1";
tag = "v${version}"; tag = "v${version}";
in in
buildGoModule { buildGoModule {
@ -15,16 +17,23 @@ buildGoModule {
owner = "yorukot"; owner = "yorukot";
repo = "superfile"; repo = "superfile";
inherit tag; inherit tag;
hash = "sha256-yClDrDpt6QUWeAtWkG0tkmFqnaviRixz6Kez0q4cRuk="; hash = "sha256-GlPePeINZ6KL3RRqfQQFYsEdd+70bRJcMqMVnUmgo/I=";
}; };
vendorHash = "sha256-STiuaNcmoviHBXGcSPPs39sICsks3Z8I3ANdnlUqA/k="; vendorHash = "sha256-ArsB0B67ymuzxTXfaUuWiRrgVCrZhmGMbJUl2u+thUw=";
ldflags = [ ldflags = [
"-s" "-s"
"-w" "-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 = { meta = {
description = "Pretty fancy and modern terminal file manager"; description = "Pretty fancy and modern terminal file manager";
homepage = "https://github.com/yorukot/superfile"; homepage = "https://github.com/yorukot/superfile";