1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-23 06:01:15 +00:00
nixpkgs/pkgs/tools/misc/trash-cli/default.nix
2017-03-03 21:08:54 +01:00

38 lines
916 B
Nix

{ stdenv, fetchFromGitHub, coreutils
, python3, python3Packages, substituteAll }:
assert stdenv.isLinux;
python3Packages.buildPythonApplication rec {
name = "trash-cli-${version}";
version = "0.17.1.14";
namePrefix = "";
src = fetchFromGitHub {
owner = "andreafrancia";
repo = "trash-cli";
rev = "${version}";
sha256 = "1bqazna223ibqjwbc1wfvfnspfyrvjy8347qlrgv4cpng72n7gfi";
};
patches = [
(substituteAll {
src = ./nix-paths.patch;
df = "${coreutils}/bin/df";
libc = "${stdenv.cc.libc.out}/lib/libc.so.6";
})
];
buildInputs = with python3Packages; [ nose mock ];
checkPhase = "nosetests";
meta = with stdenv.lib; {
homepage = https://github.com/andreafrancia/trash-cli;
description = "Command line tool for the desktop trash can";
maintainers = [ maintainers.rycee ];
platforms = platforms.all;
license = licenses.gpl2;
};
}