evcc: 0.131.4 -> 0.131.5
[NixPkgs.git] / pkgs / by-name / wh / when / package.nix
blob91f480255d6c701f7acc51eb9eb8e9049500b66f
1 { lib
2 , stdenvNoCC
3 , perl
4 , installShellFiles
5 , fetchFromBitbucket
6 }:
8 stdenvNoCC.mkDerivation (finalAttrs: {
9   pname   = "when";
10   version = "1.1.45";
12   src = fetchFromBitbucket {
13     repo  = "when";
14     owner = "ben-crowell";
15     rev   = finalAttrs.version;
16     hash  = "sha256-+ggYjY6/aTUrdvREn0TTQ4Pu/VR4QTjflDaicRXuOMs=";
17   };
19   buildInputs = [ perl ];
21   nativeBuildInputs = [ installShellFiles ];
23   postBuild = ''
24      pod2man $src/when when.1
25   '';
27   installPhase = ''
28      runHook preInstall
30      install -Dm755 when $out/bin/when
31      installManPage when.1
33      runHook postInstall
34   '';
36   meta = with lib; {
37     description = "Extremely simple personal calendar program";
38     homepage    = "https://www.lightandmatter.com/when/when.html";
39     license     = licenses.gpl2Only;
40     mainProgram = "when";
41     maintainers = with maintainers; [ vonixxx ];
42     platforms   = platforms.all;
43   };