tangled
alpha
login
or
join now
tjh.dev
/
nixpkgs
Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
0
fork
atom
overview
issues
pulls
pipelines
imgurbash: fix for new imgur API
Nikolay Amiantov
9 years ago
4b667665
ed2d804d
+8
-1
1 changed file
expand all
collapse all
unified
split
pkgs
tools
graphics
imgurbash
default.nix
+8
-1
pkgs/tools/graphics/imgurbash/default.nix
···
1
-
{ stdenv, fetchurl, bash, curl, xsel }:
2
3
stdenv.mkDerivation {
4
name = "imgurbash-4";
···
8
sha256 = "16m7dn5vqzx1q4pzssnwiwajfzrbhrz0niyhf5abxi1lwr3h0ca1";
9
};
10
0
0
0
0
0
0
11
buildCommand = ''
12
mkdir -p $out/bin
13
cat <<EOF >$out/bin/imgurbash
···
15
PATH=${stdenv.lib.makeSearchPath "bin" [curl xsel]}:\$PATH
16
EOF
17
cat $src >>$out/bin/imgurbash
0
18
chmod +x $out/bin/imgurbash
19
'';
20
···
1
+
{ stdenv, fetchurl, fetchpatch, bash, curl, xsel }:
2
3
stdenv.mkDerivation {
4
name = "imgurbash-4";
···
8
sha256 = "16m7dn5vqzx1q4pzssnwiwajfzrbhrz0niyhf5abxi1lwr3h0ca1";
9
};
10
11
+
patch = fetchpatch {
12
+
url = "https://aur.archlinux.org/cgit/aur.git/plain/001-api-v3.patch?h=imgurbash&id=c99b707cd0c373bfef659eb753efa897b0802b71";
13
+
name = "001-api-v3.patch";
14
+
sha256 = "1m5igwnpfmrvjaw1awcvjgszx25mzmcaqxs74s2gfafih52jrvxq";
15
+
};
16
+
17
buildCommand = ''
18
mkdir -p $out/bin
19
cat <<EOF >$out/bin/imgurbash
···
21
PATH=${stdenv.lib.makeSearchPath "bin" [curl xsel]}:\$PATH
22
EOF
23
cat $src >>$out/bin/imgurbash
24
+
patch $out/bin/imgurbash $patch
25
chmod +x $out/bin/imgurbash
26
'';
27