Files
nixpkgs/pkgs/by-name/su/supercronic/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

47 lines
1.0 KiB
Nix

{
lib,
buildGoModule,
fetchFromGitHub,
python3,
bash,
coreutils,
}:
buildGoModule rec {
pname = "supercronic";
version = "0.2.35";
src = fetchFromGitHub {
owner = "aptible";
repo = "supercronic";
rev = "v${version}";
hash = "sha256-SGW/G9Ud0xsNwD+EXDegh6cGAr4cWeoah7IY6yTREWo=";
};
vendorHash = "sha256-q2uH9kY0s1UM2uy6F/x1S0RqIfqXpV5KxnHJLLoAjZY=";
excludedPackages = [ "cronexpr/cronexpr" ];
nativeCheckInputs = [
python3
bash
coreutils
];
postConfigure = ''
# There are tests that set the shell to various paths
substituteInPlace cron/cron_test.go --replace /bin/sh ${bash}/bin/sh
substituteInPlace cron/cron_test.go --replace /bin/false ${coreutils}/bin/false
'';
ldflags = [ "-X main.Version=${version}" ];
meta = with lib; {
description = "Cron tool designed for use in containers";
homepage = "https://github.com/aptible/supercronic";
license = licenses.mit;
maintainers = with maintainers; [ nasageek ];
mainProgram = "supercronic";
};
}