stockholm/krebs/5pkgs/simple/htgen-imgur/default.nix
tv 90b46307b5 htgen-imgur: 1.0.0 -> 1.2.0
Generate deletehash without dashes, otherwise an unpatched flameshot
will fail to delete uploaded images, as it uses dashes to pack files
into its history.
2023-02-05 01:40:20 +01:00

29 lines
581 B
Nix

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