stockholm/krebs/5pkgs/simple/htgen-imgur/default.nix

29 lines
579 B
Nix
Raw Normal View History

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