click: fix locale in darwin
unixtools.locale is used
This commit is contained in:
parent
d64b85983b
commit
1b46c4b2a4
@ -1,4 +1,4 @@
|
|||||||
{ stdenv, buildPythonPackage, fetchPypi, substituteAll, glibc, pytest }:
|
{ stdenv, buildPythonPackage, fetchPypi, substituteAll, locale, pytest }:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "click";
|
pname = "click";
|
||||||
@ -9,11 +9,12 @@ buildPythonPackage rec {
|
|||||||
sha256 = "02qkfpykbq35id8glfgwc38yc430427yd05z1wc5cnld8zgicmgi";
|
sha256 = "02qkfpykbq35id8glfgwc38yc430427yd05z1wc5cnld8zgicmgi";
|
||||||
};
|
};
|
||||||
|
|
||||||
patches = stdenv.lib.optionals (stdenv.isLinux && !stdenv.hostPlatform.isMusl)
|
patches = [
|
||||||
(substituteAll {
|
(substituteAll {
|
||||||
src = ./fix-paths.patch;
|
src = ./fix-paths.patch;
|
||||||
locale = "${glibc.bin}/bin/locale";
|
locale = "${locale}/bin/locale";
|
||||||
});
|
})
|
||||||
|
];
|
||||||
|
|
||||||
buildInputs = [ pytest ];
|
buildInputs = [ pytest ];
|
||||||
|
|
||||||
|
@ -21639,7 +21639,7 @@ with pkgs;
|
|||||||
unixtools = recurseIntoAttrs (callPackages ./unix-tools.nix { });
|
unixtools = recurseIntoAttrs (callPackages ./unix-tools.nix { });
|
||||||
inherit (unixtools) hexdump ps logger eject umount
|
inherit (unixtools) hexdump ps logger eject umount
|
||||||
mount wall hostname more sysctl getconf
|
mount wall hostname more sysctl getconf
|
||||||
getent;
|
getent locale;
|
||||||
|
|
||||||
fts = if hostPlatform.isMusl then netbsd.fts else null;
|
fts = if hostPlatform.isMusl then netbsd.fts else null;
|
||||||
|
|
||||||
|
@ -85,6 +85,7 @@ let
|
|||||||
};
|
};
|
||||||
locale = {
|
locale = {
|
||||||
linux = pkgs.glibc;
|
linux = pkgs.glibc;
|
||||||
|
darwin = pkgs.netbsd.locale;
|
||||||
};
|
};
|
||||||
logger = {
|
logger = {
|
||||||
linux = pkgs.utillinux;
|
linux = pkgs.utillinux;
|
||||||
|
Loading…
Reference in New Issue
Block a user