treewide: remove forceSystem
This commit is contained in:
parent
c491a99362
commit
69f1045001
@ -3,7 +3,7 @@
|
|||||||
args@{ fetchgit, stdenv, autoconf, automake, automake111x, libtool
|
args@{ fetchgit, stdenv, autoconf, automake, automake111x, libtool
|
||||||
, texinfo, glibcCross, hurdPartedCross, libuuid, samba
|
, texinfo, glibcCross, hurdPartedCross, libuuid, samba
|
||||||
, gccCrossStageStatic, gcc
|
, gccCrossStageStatic, gcc
|
||||||
, forceSystem, newScope, platform, config
|
, pkgsi686Linux, newScope, platform, config
|
||||||
, targetPlatform, buildPlatform
|
, targetPlatform, buildPlatform
|
||||||
, overrides ? {}
|
, overrides ? {}
|
||||||
, buildPackages, pkgs
|
, buildPackages, pkgs
|
||||||
@ -90,7 +90,7 @@ let
|
|||||||
mig = callPackage ./mig {
|
mig = callPackage ./mig {
|
||||||
# Build natively, but force use of a 32-bit environment because we're
|
# Build natively, but force use of a 32-bit environment because we're
|
||||||
# targeting `i586-pc-gnu'.
|
# targeting `i586-pc-gnu'.
|
||||||
stdenv = (forceSystem "i686-linux" "i386").stdenv;
|
stdenv = pkgsi686Linux.stdenv;
|
||||||
};
|
};
|
||||||
|
|
||||||
# XXX: Use this one for its `.crossDrv'. Using the one above from
|
# XXX: Use this one for its `.crossDrv'. Using the one above from
|
||||||
|
@ -124,31 +124,7 @@ let
|
|||||||
# - pkgsCross.<system> where system is a member of lib.systems.examples
|
# - pkgsCross.<system> where system is a member of lib.systems.examples
|
||||||
# - pkgsMusl
|
# - pkgsMusl
|
||||||
# - pkgsi686Linux
|
# - pkgsi686Linux
|
||||||
#
|
otherPackageSets = self: super: let
|
||||||
# In addition some utility functions are included for creating the
|
|
||||||
# above sets.
|
|
||||||
#
|
|
||||||
# - forceLibc
|
|
||||||
# - forceSystem
|
|
||||||
otherPackageSets = self: super: {
|
|
||||||
# This maps each entry in lib.systems.examples to its own package
|
|
||||||
# set. Each of these will contain all packages cross compiled for
|
|
||||||
# that target system. For instance, pkgsCross.rasberryPi.hello,
|
|
||||||
# will refer to the "hello" package built for the ARM6-based
|
|
||||||
# Raspberry Pi.
|
|
||||||
pkgsCross = lib.mapAttrs (n: crossSystem:
|
|
||||||
nixpkgsFun { inherit crossSystem; })
|
|
||||||
lib.systems.examples;
|
|
||||||
|
|
||||||
# All packages built with the Musl libc. This will override the
|
|
||||||
# default GNU libc on Linux systems. Non-Linux systems are not
|
|
||||||
# supported.
|
|
||||||
pkgsMusl = self.forceLibc "musl";
|
|
||||||
|
|
||||||
# All packages built for i686 Linux.
|
|
||||||
# Used by wine, firefox with debugging version of Flash, ...
|
|
||||||
pkgsi686Linux = self.forceSystem "i686-linux" "i386";
|
|
||||||
|
|
||||||
# Override default libc. Currently this is only useful on Linux
|
# Override default libc. Currently this is only useful on Linux
|
||||||
# systems where you have the choice between Musl & Glibc. In the
|
# systems where you have the choice between Musl & Glibc. In the
|
||||||
# future it may work for other things.
|
# future it may work for other things.
|
||||||
@ -166,6 +142,24 @@ let
|
|||||||
platform = stdenv.hostPlatform.platform // { inherit kernelArch; };
|
platform = stdenv.hostPlatform.platform // { inherit kernelArch; };
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
in {
|
||||||
|
# This maps each entry in lib.systems.examples to its own package
|
||||||
|
# set. Each of these will contain all packages cross compiled for
|
||||||
|
# that target system. For instance, pkgsCross.rasberryPi.hello,
|
||||||
|
# will refer to the "hello" package built for the ARM6-based
|
||||||
|
# Raspberry Pi.
|
||||||
|
pkgsCross = lib.mapAttrs (n: crossSystem:
|
||||||
|
nixpkgsFun { inherit crossSystem; })
|
||||||
|
lib.systems.examples;
|
||||||
|
|
||||||
|
# All packages built with the Musl libc. This will override the
|
||||||
|
# default GNU libc on Linux systems. Non-Linux systems are not
|
||||||
|
# supported.
|
||||||
|
pkgsMusl = forceLibc "musl";
|
||||||
|
|
||||||
|
# All packages built for i686 Linux.
|
||||||
|
# Used by wine, firefox with debugging version of Flash, ...
|
||||||
|
pkgsi686Linux = forceSystem "i686-linux" "i386";
|
||||||
};
|
};
|
||||||
|
|
||||||
# The complete chain of package set builders, applied from top to bottom.
|
# The complete chain of package set builders, applied from top to bottom.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user