stockholm/krebs/5pkgs/simple/htgen-imgur/default.nix
tv c8f8fdd05b htgen-imgur: 1.0.0 -> 1.1.0
Use HTGEN_VERBOSE for printing debug information.
2020-09-15 21:02:01 +02:00

30 lines
569 B
Nix

with import <stockholm/lib>;
{ attr, coreutils, exiv2, findutils, gnugrep, jq, nix, utillinux, stdenv }:
stdenv.mkDerivation rec {
pname = "htgen-imgur";
version = "1.1.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
'';
}