diff options
author | Robert Helgesson <robert@rycee.net> | 2017-06-03 00:37:48 +0200 |
---|---|---|
committer | Robert Helgesson <robert@rycee.net> | 2017-06-03 00:37:48 +0200 |
commit | 4576e8dddd17fd8c25aa02a917e89982cf7e3e37 (patch) | |
tree | 0917e4e4a9963816743d1233813fb871cfd763d5 /pkgs/tools/misc/trash-cli | |
parent | fd9c7b0d9af1f01443e8fddee02dbd3fb3a065d8 (diff) | |
download | nixpkgs-4576e8dddd17fd8c25aa02a917e89982cf7e3e37.tar nixpkgs-4576e8dddd17fd8c25aa02a917e89982cf7e3e37.tar.gz nixpkgs-4576e8dddd17fd8c25aa02a917e89982cf7e3e37.tar.bz2 nixpkgs-4576e8dddd17fd8c25aa02a917e89982cf7e3e37.tar.lz nixpkgs-4576e8dddd17fd8c25aa02a917e89982cf7e3e37.tar.xz nixpkgs-4576e8dddd17fd8c25aa02a917e89982cf7e3e37.tar.zst nixpkgs-4576e8dddd17fd8c25aa02a917e89982cf7e3e37.zip |
trash-cli: fix build on Python 3.6
Diffstat (limited to 'pkgs/tools/misc/trash-cli')
-rw-r--r-- | pkgs/tools/misc/trash-cli/default.nix | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/pkgs/tools/misc/trash-cli/default.nix b/pkgs/tools/misc/trash-cli/default.nix index 40fc72a0d71..77308ecf2ed 100644 --- a/pkgs/tools/misc/trash-cli/default.nix +++ b/pkgs/tools/misc/trash-cli/default.nix @@ -1,4 +1,4 @@ -{ stdenv, fetchFromGitHub, coreutils +{ stdenv, fetchFromGitHub, fetchpatch, coreutils , python3, python3Packages, substituteAll }: assert stdenv.isLinux; @@ -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 ]; |