mirror of
https://github.com/kmein/niveum
synced 2026-03-16 10:11:08 +01:00
Install daybook
This commit is contained in:
@@ -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
|
||||
|
||||
26
packages/daybook/default.nix
Normal file
26
packages/daybook/default.nix
Normal 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;
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user