Files
nixpkgs/pkgs/by-name/su/superfile/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

60 lines
1.3 KiB
Nix

{
lib,
stdenv,
buildGoModule,
fetchFromGitHub,
nix-update-script,
writableTmpDirAsHomeHook,
exiftool,
}:
let
version = "1.3.3";
tag = "v${version}";
in
buildGoModule {
pname = "superfile";
inherit version;
src = fetchFromGitHub {
owner = "yorukot";
repo = "superfile";
inherit tag;
hash = "sha256-A1SWsBcPtGNbSReslp5L3Gg4hy3lDSccqGxFpLfVPrk=";
};
vendorHash = "sha256-sqt0BzJW1nu6gYAhscrXlTAbwIoUY7JAOuzsenHpKEI=";
ldflags = [
"-s"
"-w"
];
nativeBuildInputs = [ exiftool ];
nativeCheckInputs = [ writableTmpDirAsHomeHook ];
# Upstream notes that this could be flaky, and it consistently fails for me.
checkFlags = [
"-skip=^TestReturnDirElement/Sort_by_Date$"
]
++ lib.optionals stdenv.isDarwin [
# Only failing on nix darwin. I suspect this is due to the way
# darwin handles file permissions.
"-skip=^TestCompressSelectedFiles"
];
passthru.updateScript = nix-update-script { };
meta = {
description = "Pretty fancy and modern terminal file manager";
homepage = "https://github.com/yorukot/superfile";
changelog = "https://github.com/yorukot/superfile/blob/${tag}/changelog.md";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [
momeemt
redyf
];
mainProgram = "superfile";
};
}