nixpkgs/pkgs/applications/misc/sunwait/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

29 lines
751 B
Nix
Raw Normal View History

2021-03-18 18:06:47 +01:00
{ lib, stdenv, fetchFromGitHub }:
2023-09-20 09:23:00 +02:00
stdenv.mkDerivation (finalAttrs: {
2021-03-18 18:06:47 +01:00
pname = "sunwait";
2023-09-20 09:23:00 +02:00
version = "0.9.1";
2021-03-18 18:06:47 +01:00
src = fetchFromGitHub {
owner = "risacher";
repo = "sunwait";
2023-09-20 09:23:00 +02:00
rev = finalAttrs.version;
hash = "sha256-v2cNjecJ4SstOsvDe/Lu0oOyBd8I8LMHZIH+f9ZC7Fc=";
2021-03-18 18:06:47 +01:00
};
2021-05-18 20:03:31 +02:00
makeFlags = [ "C=${stdenv.cc.targetPrefix}c++" ];
2021-03-18 18:06:47 +01:00
installPhase = ''
install -Dm755 sunwait -t $out/bin
'';
2023-09-20 09:23:00 +02:00
meta = {
2021-03-18 18:06:47 +01:00
description = "Calculates sunrise or sunset times with civil, nautical, astronomical and custom twilights";
homepage = "https://github.com/risacher/sunwait";
2023-09-20 09:23:00 +02:00
license = lib.licenses.gpl3Only;
maintainers = with lib.maintainers; [ eclairevoyant ];
mainProgram = "sunwait";
platforms = lib.platforms.all;
2021-03-18 18:06:47 +01:00
};
2023-09-20 09:23:00 +02:00
})