1
0
mirror of https://github.com/kmein/niveum synced 2026-03-16 10:11:08 +01:00

Install daybook

This commit is contained in:
Kierán Meinhardt
2019-01-01 16:45:49 +01:00
parent 2920a1e4e5
commit 3339777b56
2 changed files with 31 additions and 1 deletions

View File

@@ -79,14 +79,18 @@ in with pkgs;
fontaxes
ifnextok
imakeidx
hardwrap
titlesec
libertine
logreq
marginnote
mweights
realscripts
pbox
stdclsdv
xstring;
})
})
(callPackage ../packages/daybook {})
audacity
cabal-install
cabal2nix

View File

@@ -0,0 +1,26 @@
{ stdenv, makeWrapper, pandoc, fetchFromGitHub }:
stdenv.mkDerivation {
name = "daybook";
src = fetchFromGitHub {
owner = "kmein";
repo = "daybook";
rev = "370c62bc19d514efc55451fca19d6aa26ba5e893";
sha256 = "0dqah4ml561xbizkbah0s7n4mqn7y5dcpwbp3x7cj5ypr7y225gp";
};
nativeBuildInputs = [ makeWrapper ];
buildInputs = [ pandoc ];
buildPhase = ''
pandoc --standalone --to man daybook.1.md -o daybook.1
'';
installPhase = ''
mkdir -p $out/{bin,share/man/man1}
install daybook.1 $out/share/man/man1
install daybook $out/bin
wrapProgram $out/bin/daybook --prefix PATH ":" ${pandoc}/bin ;
'';
meta = with stdenv.lib; {
homepage = https://github.com/kmein/daybook;
description = "A diary writing utility in sh";
license = licenses.mit;
};
}