mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-09-23 05:37:27 +03:00
when: init at 1.1.45
when: init at 1.1.46 incorporated suggestions when: init at 1.1.46 incorporated changes fixed stdenv incorporated changes incorporated changes incorporated changes incorporated changes fixed trailing whitespace
This commit is contained in:
parent
6abc77ca5c
commit
38fe5aa511
44
pkgs/by-name/wh/when/package.nix
Normal file
44
pkgs/by-name/wh/when/package.nix
Normal file
@ -0,0 +1,44 @@
|
||||
{ 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 = "An 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;
|
||||
};
|
||||
})
|
Loading…
Reference in New Issue
Block a user