90b46307b5
Generate deletehash without dashes, otherwise an unpatched flameshot will fail to delete uploaded images, as it uses dashes to pack files into its history.
29 lines
581 B
Nix
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
|
|
'';
|
|
}
|