Merge pull request #268055 from Vonixxx/add-when-package

when: init at 1.1.45
This commit is contained in:
Pol Dellaiera
2023-12-14 07:38:37 +01:00
committed by GitHub
2 changed files with 50 additions and 0 deletions
+6
View File
@@ -19424,6 +19424,12 @@
githubId = 3413119;
name = "Vonfry";
};
vonixxx = {
email = "vonixxx@tuta.io";
github = "vonixxx";
githubId = 144771550;
name = "Luca Uricariu";
};
votava = {
email = "votava@gmail.com";
github = "janvotava";
+44
View 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;
};
})