Skip to content

Commit

Permalink
trash-cli: 0.20.11.7 -> 0.20.11.23
Browse files Browse the repository at this point in the history
  • Loading branch information
rycee committed Nov 23, 2020
1 parent d06276e commit aeadb4c
Showing 1 changed file with 4 additions and 14 deletions.
18 changes: 4 additions & 14 deletions pkgs/tools/misc/trash-cli/default.nix
Original file line number Diff line number Diff line change
@@ -1,27 +1,17 @@
{ stdenv, fetchFromGitHub, fetchpatch, coreutils
, python3Packages, substituteAll }:
{ stdenv, fetchFromGitHub, python3Packages }:

python3Packages.buildPythonApplication rec {
pname = "trash-cli";
version = "0.20.11.7";
version = "0.20.11.23";

src = fetchFromGitHub {
owner = "andreafrancia";
repo = "trash-cli";
rev = version;
sha256 = "0083vagy0jkahb5sw1il7r53ggk45zbjwwjsqd76v7ph3v1awf4v";
sha256 = "1fjkmpnbpzxniypql68cpwc2rrnih8b34p8pzabrf55f49wcmcph";
};

patches = [
(substituteAll {
src = ./nix-paths.patch;
df = "${coreutils}/bin/df";
libc =
if stdenv.hostPlatform.isDarwin
then "/usr/lib/libSystem.dylib"
else "${stdenv.cc.libc}/lib/libc.so.6";
})
];
propagatedBuildInputs = [ python3Packages.psutil ];

checkInputs = with python3Packages; [
nose
Expand Down

0 comments on commit aeadb4c

Please sign in to comment.