2020-05-05 14:38:59 +00:00
|
|
|
with import <stockholm/lib>;
|
|
|
|
{ attr, coreutils, exiv2, findutils, gnugrep, jq, nix, utillinux, stdenv }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "htgen-imgur";
|
2020-11-16 16:19:03 +00:00
|
|
|
version = "1.0.0";
|
2020-05-05 14:38:59 +00:00
|
|
|
|
|
|
|
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
|
|
|
|
'';
|
|
|
|
}
|