mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-24 13:05:08 +00:00
Merge pull request #41847 from mnacamura/trash-cli-darwin
trash-cli: enable darwin build
This commit is contained in:
commit
4206554555
@ -1,8 +1,6 @@
|
|||||||
{ stdenv, fetchFromGitHub, fetchpatch, coreutils
|
{ stdenv, fetchFromGitHub, fetchpatch, coreutils
|
||||||
, python3, python3Packages, substituteAll }:
|
, python3, python3Packages, substituteAll }:
|
||||||
|
|
||||||
assert stdenv.isLinux;
|
|
||||||
|
|
||||||
python3Packages.buildPythonApplication rec {
|
python3Packages.buildPythonApplication rec {
|
||||||
name = "trash-cli-${version}";
|
name = "trash-cli-${version}";
|
||||||
version = "0.17.1.14";
|
version = "0.17.1.14";
|
||||||
@ -19,7 +17,8 @@ python3Packages.buildPythonApplication rec {
|
|||||||
(substituteAll {
|
(substituteAll {
|
||||||
src = ./nix-paths.patch;
|
src = ./nix-paths.patch;
|
||||||
df = "${coreutils}/bin/df";
|
df = "${coreutils}/bin/df";
|
||||||
libc = "${stdenv.cc.libc.out}/lib/libc.so.6";
|
libc = let ext = if stdenv.isDarwin then ".dylib" else ".so.6";
|
||||||
|
in "${stdenv.cc.libc}/lib/libc${ext}";
|
||||||
})
|
})
|
||||||
|
|
||||||
# Fix build on Python 3.6.
|
# Fix build on Python 3.6.
|
||||||
@ -37,7 +36,7 @@ python3Packages.buildPythonApplication rec {
|
|||||||
homepage = https://github.com/andreafrancia/trash-cli;
|
homepage = https://github.com/andreafrancia/trash-cli;
|
||||||
description = "Command line tool for the desktop trash can";
|
description = "Command line tool for the desktop trash can";
|
||||||
maintainers = [ maintainers.rycee ];
|
maintainers = [ maintainers.rycee ];
|
||||||
platforms = platforms.all;
|
platforms = platforms.unix;
|
||||||
license = licenses.gpl2;
|
license = licenses.gpl2;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user