mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-29 09:04:17 +00:00
755b915a15
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \ | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
45 lines
910 B
Nix
45 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;
|
|
};
|
|
})
|