Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)

Merge pull request #256267 from etu/update-sunwait

sunwait: 2020-10-26 -> 0.9.1

authored by Weijia Wang and committed by GitHub ba606221 e9960360

+10 -9
+10 -9
pkgs/applications/misc/sunwait/default.nix
··· 1 1 { lib, stdenv, fetchFromGitHub }: 2 2 3 - stdenv.mkDerivation { 3 + stdenv.mkDerivation (finalAttrs: { 4 4 pname = "sunwait"; 5 - version = "2020-10-26"; 5 + version = "0.9.1"; 6 6 7 7 src = fetchFromGitHub { 8 8 owner = "risacher"; 9 9 repo = "sunwait"; 10 - rev = "102cb417ecbb7a3757ba9ee4b94d6db3225124c4"; 11 - sha256 = "0cs8rdcnzsl10zia2k49a6c2z6gvp5rnf31sgn3hn5c7kgy7l3ax"; 10 + rev = finalAttrs.version; 11 + hash = "sha256-v2cNjecJ4SstOsvDe/Lu0oOyBd8I8LMHZIH+f9ZC7Fc="; 12 12 }; 13 13 14 14 makeFlags = [ "C=${stdenv.cc.targetPrefix}c++" ]; ··· 17 17 install -Dm755 sunwait -t $out/bin 18 18 ''; 19 19 20 - meta = with lib; { 20 + meta = { 21 21 description = "Calculates sunrise or sunset times with civil, nautical, astronomical and custom twilights"; 22 22 homepage = "https://github.com/risacher/sunwait"; 23 - license = licenses.gpl3Only; 24 - maintainers = with maintainers; [ ]; 25 - platforms = platforms.all; 23 + license = lib.licenses.gpl3Only; 24 + maintainers = with lib.maintainers; [ eclairevoyant ]; 25 + mainProgram = "sunwait"; 26 + platforms = lib.platforms.all; 26 27 }; 27 - } 28 + })