blob: cdf0f1537acc17145c5163409ee1399da9e5065c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
{ stdenv, makeWrapper, coreutils, findutils,
gawk, pandoc, gnumake, texlive }:
stdenv.mkDerivation {
pname = "invoice";
version = "0.1.0";
src = ./.;
nativeBuildInputs = [ makeWrapper ];
installPhase = ''
mkdir -p $out/{bin,share}
cp invoice.sh $out/bin/invoice
cp template.tex $out/share/
wrapProgram $out/bin/invoice \
--set PATH $out/bin:${stdenv.lib.makeBinPath
[ coreutils findutils gawk gnumake pandoc texlive.combined.scheme-full ]} \
--set TEMPLATE_FILE $out/share/template.tex
'';
meta = with stdenv.lib; {
description = "Generate dynamic invoices based on yaml descriptors";
homepage = "https://git.sr.ht/~spacekookie/libkookie/";
license = licenses.gpl3;
};
}
|