Skip to content

Commit

Permalink
trash-cli: fix build on Python 3.6
Browse files Browse the repository at this point in the history
  • Loading branch information
rycee committed Jun 2, 2017
1 parent fd9c7b0 commit 4576e8d
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion pkgs/tools/misc/trash-cli/default.nix
@@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub, coreutils
{ stdenv, fetchFromGitHub, fetchpatch, coreutils
, python3, python3Packages, substituteAll }:

assert stdenv.isLinux;
Expand All @@ -21,6 +21,12 @@ python3Packages.buildPythonApplication rec {
df = "${coreutils}/bin/df";
libc = "${stdenv.cc.libc.out}/lib/libc.so.6";
})

# Fix build on Python 3.6.
(fetchpatch {
url = "https://github.com/andreafrancia/trash-cli/commit/a21b80d1e69783bb09376c3f60dd2f2a10578805.patch";
sha256 = "0w49rjh433sjfc2cl5a9wlbr6kcn9f1qg905qsyv7ay3ar75wvyp";
})
];

buildInputs = with python3Packages; [ nose mock ];
Expand Down

0 comments on commit 4576e8d

Please sign in to comment.