forked from mirrors/nixpkgs
imgurbash: fix for new imgur API
This commit is contained in:
parent
ed2d804d5d
commit
4b667665c2
|
@ -1,4 +1,4 @@
|
|||
{ stdenv, fetchurl, bash, curl, xsel }:
|
||||
{ stdenv, fetchurl, fetchpatch, bash, curl, xsel }:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
name = "imgurbash-4";
|
||||
|
@ -8,6 +8,12 @@ stdenv.mkDerivation {
|
|||
sha256 = "16m7dn5vqzx1q4pzssnwiwajfzrbhrz0niyhf5abxi1lwr3h0ca1";
|
||||
};
|
||||
|
||||
patch = fetchpatch {
|
||||
url = "https://aur.archlinux.org/cgit/aur.git/plain/001-api-v3.patch?h=imgurbash&id=c99b707cd0c373bfef659eb753efa897b0802b71";
|
||||
name = "001-api-v3.patch";
|
||||
sha256 = "1m5igwnpfmrvjaw1awcvjgszx25mzmcaqxs74s2gfafih52jrvxq";
|
||||
};
|
||||
|
||||
buildCommand = ''
|
||||
mkdir -p $out/bin
|
||||
cat <<EOF >$out/bin/imgurbash
|
||||
|
@ -15,6 +21,7 @@ stdenv.mkDerivation {
|
|||
PATH=${stdenv.lib.makeSearchPath "bin" [curl xsel]}:\$PATH
|
||||
EOF
|
||||
cat $src >>$out/bin/imgurbash
|
||||
patch $out/bin/imgurbash $patch
|
||||
chmod +x $out/bin/imgurbash
|
||||
'';
|
||||
|
||||
|
|
Loading…
Reference in a new issue