depot/third_party/nixpkgs/pkgs/by-name/wh/when/package.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

44 lines
910 B
Nix

{ lib
, stdenvNoCC
, perl
, installShellFiles
, fetchFromBitbucket
}:
stdenvNoCC.mkDerivation (finalAttrs: {
pname = "when";
version = "1.1.45";
src = fetchFromBitbucket {
repo = "when";
owner = "ben-crowell";
rev = finalAttrs.version;
hash = "sha256-+ggYjY6/aTUrdvREn0TTQ4Pu/VR4QTjflDaicRXuOMs=";
};
buildInputs = [ perl ];
nativeBuildInputs = [ installShellFiles ];
postBuild = ''
pod2man $src/when when.1
'';
installPhase = ''
runHook preInstall
install -Dm755 when $out/bin/when
installManPage when.1
runHook postInstall
'';
meta = with lib; {
description = "Extremely simple personal calendar program";
homepage = "https://www.lightandmatter.com/when/when.html";
license = licenses.gpl2Only;
mainProgram = "when";
maintainers = with maintainers; [ vonixxx ];
platforms = platforms.all;
};
})