mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-01 23:22:37 +00:00
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 {
|
||||
pname = "click";
|
||||
@ -9,11 +9,12 @@ buildPythonPackage rec {
|
||||
sha256 = "02qkfpykbq35id8glfgwc38yc430427yd05z1wc5cnld8zgicmgi";
|
||||
};
|
||||
|
||||
patches = stdenv.lib.optionals (stdenv.isLinux && !stdenv.hostPlatform.isMusl)
|
||||
patches = [
|
||||
(substituteAll {
|
||||
src = ./fix-paths.patch;
|
||||
locale = "${glibc.bin}/bin/locale";
|
||||
});
|
||||
locale = "${locale}/bin/locale";
|
||||
})
|
||||
];
|
||||
|
||||
buildInputs = [ pytest ];
|
||||
|
||||
|
@ -21639,7 +21639,7 @@ with pkgs;
|
||||
unixtools = recurseIntoAttrs (callPackages ./unix-tools.nix { });
|
||||
inherit (unixtools) hexdump ps logger eject umount
|
||||
mount wall hostname more sysctl getconf
|
||||
getent;
|
||||
getent locale;
|
||||
|
||||
fts = if hostPlatform.isMusl then netbsd.fts else null;
|
||||
|
||||
|
@ -85,6 +85,7 @@ let
|
||||
};
|
||||
locale = {
|
||||
linux = pkgs.glibc;
|
||||
darwin = pkgs.netbsd.locale;
|
||||
};
|
||||
logger = {
|
||||
linux = pkgs.utillinux;
|
||||
|
Loading…
Reference in New Issue
Block a user