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";
|
2023-02-04 23:59:47 +00:00
|
|
|
version = "1.2.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
|
|
|
|
'';
|
|
|
|
}
|