stockholm/krebs/5pkgs/simple/htgen-imgur/default.nix
2021-10-12 20:53:45 +02:00

29 lines
579 B
Nix

{ attr, coreutils, exiv2, findutils, gnugrep, jq, nix, stockholm, utillinux, stdenv }:
stdenv.mkDerivation rec {
pname = "htgen-imgur";
version = "1.0.0";
src = ./src;
buildPhase = ''
(
exec > htgen-imgur
echo PATH=${stockholm.lib.makeBinPath [
attr
coreutils
exiv2
findutils
gnugrep
jq
nix utillinux
]}
echo STATEDIR=${stockholm.lib.shell.escape "\${STATEDIR-$HOME}"}
cat $src/htgen-imgur
)
'';
installPhase = ''
install -D htgen-imgur $out/bin/htgen-imgur
'';
}