Files
nixpkgs/pkgs/by-name/ha/harsh/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

41 lines
1018 B
Nix

{
lib,
buildGoModule,
fetchFromGitHub,
writableTmpDirAsHomeHook,
}:
buildGoModule (finalAttrs: {
pname = "harsh";
version = "0.10.22";
src = fetchFromGitHub {
owner = "wakatara";
repo = "harsh";
tag = "v${finalAttrs.version}";
hash = "sha256-TGhhiqFf6POR7x/Nc8m5/mBlj23EnjZlL5AL9IwXghk=";
};
vendorHash = "sha256-m+5MSgzuRUZuP1GhEUCttLRLL63kphMi8N9tDUaTaOQ=";
nativeCheckInputs = [ writableTmpDirAsHomeHook ];
checkFlags =
let
skippedTests = [
"TestNewHabitIntegration" # panic: unexpected call to os.Exit(0) during test
"TestBuildGraph" # Expected graph length 10, got 24
];
in
[ "-skip=^${builtins.concatStringsSep "$|^" skippedTests}$" ];
meta = {
description = "CLI habit tracking for geeks";
homepage = "https://github.com/wakatara/harsh";
changelog = "https://github.com/wakatara/harsh/releases/tag/v${finalAttrs.version}";
license = lib.licenses.mit;
maintainers = [ ];
mainProgram = "harsh";
};
})