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

29 lines
581 B
Nix
Raw Normal View History

2022-09-27 10:26:37 +00:00
{ attr, coreutils, exiv2, findutils, gnugrep, jq, nix, stockholm, util-linux, 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
2022-09-27 10:26:37 +00:00
nix util-linux
2020-05-05 14:38:59 +00:00
]}
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
'';
}