Skip to content

Commit 4576e8d

Browse files
committedJun 2, 2017
trash-cli: fix build on Python 3.6
1 parent fd9c7b0 commit 4576e8d

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed
 

‎pkgs/tools/misc/trash-cli/default.nix

+7-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{ stdenv, fetchFromGitHub, coreutils
1+
{ stdenv, fetchFromGitHub, fetchpatch, coreutils
22
, python3, python3Packages, substituteAll }:
33

44
assert stdenv.isLinux;
@@ -21,6 +21,12 @@ python3Packages.buildPythonApplication rec {
2121
df = "${coreutils}/bin/df";
2222
libc = "${stdenv.cc.libc.out}/lib/libc.so.6";
2323
})
24+
25+
# Fix build on Python 3.6.
26+
(fetchpatch {
27+
url = "https://github.com/andreafrancia/trash-cli/commit/a21b80d1e69783bb09376c3f60dd2f2a10578805.patch";
28+
sha256 = "0w49rjh433sjfc2cl5a9wlbr6kcn9f1qg905qsyv7ay3ar75wvyp";
29+
})
2430
];
2531

2632
buildInputs = with python3Packages; [ nose mock ];

0 commit comments

Comments
 (0)
Please sign in to comment.