summaryrefslogtreecommitdiffstats
path: root/krebs/5pkgs/simple/htgen-imgur/default.nix
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2020-05-05 16:38:59 +0200
committertv <tv@krebsco.de>2020-05-05 17:49:28 +0200
commitd437145ae1c3f5b4a4975cc681e6c0eadf05712f (patch)
treeb648fdf910f2b64a0c8bac0c64542eadf01591a2 /krebs/5pkgs/simple/htgen-imgur/default.nix
parent66a3597034c0f400a948b551e95234f94c227859 (diff)
htgen-imgur: init at 1.0.0
Diffstat (limited to 'krebs/5pkgs/simple/htgen-imgur/default.nix')
-rw-r--r--krebs/5pkgs/simple/htgen-imgur/default.nix29
1 files changed, 29 insertions, 0 deletions
diff --git a/krebs/5pkgs/simple/htgen-imgur/default.nix b/krebs/5pkgs/simple/htgen-imgur/default.nix
new file mode 100644
index 000000000..fe0b2ab04
--- /dev/null
+++ b/krebs/5pkgs/simple/htgen-imgur/default.nix
@@ -0,0 +1,29 @@
+with import <stockholm/lib>;
+{ attr, coreutils, exiv2, findutils, gnugrep, jq, nix, utillinux, stdenv }:
+stdenv.mkDerivation rec {
+ pname = "htgen-imgur";
+ version = "1.0.0";
+
+ src = ./src;
+
+ buildPhase = ''
+ (
+ exec > htgen-imgur
+ echo PATH=${makeBinPath [
+ attr
+ coreutils
+ exiv2
+ findutils
+ gnugrep
+ jq
+ nix utillinux
+ ]}
+ echo STATEDIR=${shell.escape "\${STATEDIR-$HOME}"}
+ cat $src/htgen-imgur
+ )
+ '';
+
+ installPhase = ''
+ install -D htgen-imgur $out/bin/htgen-imgur
+ '';
+}