diff options
author | Katharina Fey <kookie@spacekookie.de> | 2019-10-05 13:24:18 +0000 |
---|---|---|
committer | Katharina Fey <kookie@spacekookie.de> | 2019-10-05 13:25:58 +0000 |
commit | 0a6d1447db7d1f52517a4a4c47d4198451fd223e (patch) | |
tree | 9e15a365b7ee2cd46b04d9af20b9b300967526b9 /overlays/kookie/invoice/default.nix | |
parent | 1efa96a62514a89b68432f58f3235e2fa6e17d58 (diff) |
Adding LIBKOOKIE overlays directories
Some of these package definitions are taken verbatim from KOOKIEPKGS,
others from NIXCFG MASTER (which will be included in the history of
this repository)
Diffstat (limited to 'overlays/kookie/invoice/default.nix')
-rw-r--r-- | overlays/kookie/invoice/default.nix | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/overlays/kookie/invoice/default.nix b/overlays/kookie/invoice/default.nix new file mode 100644 index 00000000000..25c0fbb1ddb --- /dev/null +++ b/overlays/kookie/invoice/default.nix @@ -0,0 +1,28 @@ +{ 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/kookiepkgs/"; + license = licenses.gpl3; + }; +} + |