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
33 lines
722 B
Nix
33 lines
722 B
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "sunwait";
|
|
version = "0.9.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "risacher";
|
|
repo = "sunwait";
|
|
rev = finalAttrs.version;
|
|
hash = "sha256-v2cNjecJ4SstOsvDe/Lu0oOyBd8I8LMHZIH+f9ZC7Fc=";
|
|
};
|
|
|
|
makeFlags = [ "C=${stdenv.cc.targetPrefix}c++" ];
|
|
|
|
installPhase = ''
|
|
install -Dm755 sunwait -t $out/bin
|
|
'';
|
|
|
|
meta = {
|
|
description = "Calculates sunrise or sunset times with civil, nautical, astronomical and custom twilights";
|
|
homepage = "https://github.com/risacher/sunwait";
|
|
license = lib.licenses.gpl3Only;
|
|
maintainers = [ ];
|
|
mainProgram = "sunwait";
|
|
platforms = lib.platforms.all;
|
|
};
|
|
})
|