forked from the-distro/ofborg
Merge pull request #259 from LnL7/darwin-locale
make glibcLocales linux only
This commit is contained in:
commit
181d67c86c
11
shell.nix
11
shell.nix
|
@ -31,7 +31,7 @@ let
|
||||||
# HISTFILE = "${src}/.bash_hist";
|
# HISTFILE = "${src}/.bash_hist";
|
||||||
};
|
};
|
||||||
|
|
||||||
rustEnv = stdenv.mkDerivation rec {
|
rustEnv = stdenv.mkDerivation (rec {
|
||||||
name = "gh-event-forwarder";
|
name = "gh-event-forwarder";
|
||||||
buildInputs = with pkgs; [
|
buildInputs = with pkgs; [
|
||||||
bash
|
bash
|
||||||
|
@ -55,12 +55,13 @@ let
|
||||||
|
|
||||||
HISTFILE = "${toString ./.}/.bash_hist";
|
HISTFILE = "${toString ./.}/.bash_hist";
|
||||||
RUSTFLAGS = "-D warnings";
|
RUSTFLAGS = "-D warnings";
|
||||||
LOCALE_ARCHIVE_2_21 = "${oldpkgs.glibcLocales}/lib/locale/locale-archive";
|
|
||||||
LOCALE_ARCHIVE_2_27 = "${pkgs.glibcLocales}/lib/locale/locale-archive";
|
|
||||||
RUST_BACKTRACE = "1";
|
RUST_BACKTRACE = "1";
|
||||||
RUST_LOG = "ofborg=debug";
|
RUST_LOG = "ofborg=debug";
|
||||||
passthru.phpEnv = phpEnv;
|
passthru.phpEnv = phpEnv;
|
||||||
};
|
}
|
||||||
|
// stdenv.lib.optionalAttrs stdenv.isLinux {
|
||||||
|
LOCALE_ARCHIVE_2_21 = "${oldpkgs.glibcLocales}/lib/locale/locale-archive";
|
||||||
|
LOCALE_ARCHIVE_2_27 = "${pkgs.glibcLocales}/lib/locale/locale-archive";
|
||||||
|
});
|
||||||
|
|
||||||
in rustEnv
|
in rustEnv
|
||||||
|
|
Loading…
Reference in a new issue