core/pkgs/by-name/gl/glibc/packages.nix

47 lines
1.4 KiB
Nix
Raw Normal View History

2024-05-02 00:46:19 +00:00
{ ... }:
res: pkgs: super:
2024-06-30 08:16:52 +00:00
with pkgs; {
2024-05-02 00:46:19 +00:00
glibc = callPackage ./. {
stdenv = gccStdenv; # doesn't compile without gcc
};
mtrace = callPackage ./mtrace.nix { };
2024-06-30 08:16:52 +00:00
glibc_memusage = callPackage ./. { withGd = true; };
2024-05-02 00:46:19 +00:00
# Being redundant to avoid cycles on boot. TODO: find a better way
glibcCross = callPackage ./. {
stdenv = gccCrossLibcStdenv; # doesn't compile without gcc
# TODO: Fix broken reference to libgcc
# libgcc = callPackage ../core/gcc/libgcc {
# gcc = gccCrossLibcStdenv.cc;
# glibc = glibcCross.override { libgcc = null; };
# stdenvNoLibs = gccCrossLibcStdenv;
# };
};
# Only supported on Linux and only on glibc
glibcLocales =
2024-06-30 08:16:52 +00:00
if stdenv.hostPlatform.isLinux && stdenv.hostPlatform.isGnu then
callPackage ./locales.nix { }
else
null;
2024-05-02 00:46:19 +00:00
glibcLocalesUtf8 =
2024-06-30 08:16:52 +00:00
if stdenv.hostPlatform.isLinux && stdenv.hostPlatform.isGnu then
callPackage ./locales.nix { allLocales = false; }
else
null;
2024-05-02 00:46:19 +00:00
glibcInfo = callPackage ./info.nix { };
glibc_multi = callPackage ./multi.nix {
# The buildPackages is required for cross-compilation. The pkgsi686Linux set
# has target and host always set to the same value based on target platform
# of the current set. We need host to be same as build to correctly get i686
# variant of glibc.
glibc32 = pkgsi686Linux.buildPackages.glibc;
};
}