mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-27 22:03:54 +03:00
Merge branch 'amjoseph-nixpkgs-pr/resume182058' into staging
This commit is contained in:
commit
bf9ff0c687
@ -622,6 +622,20 @@ rec {
|
|||||||
dontRecurseIntoAttrs =
|
dontRecurseIntoAttrs =
|
||||||
attrs: attrs // { recurseForDerivations = false; };
|
attrs: attrs // { recurseForDerivations = false; };
|
||||||
|
|
||||||
|
/* `unionOfDisjoint x y` is equal to `x // y // z` where the
|
||||||
|
attrnames in `z` are the intersection of the attrnames in `x` and
|
||||||
|
`y`, and all values `assert` with an error message. This
|
||||||
|
operator is commutative, unlike (//). */
|
||||||
|
unionOfDisjoint = x: y:
|
||||||
|
let
|
||||||
|
intersection = builtins.intersectAttrs x y;
|
||||||
|
collisions = lib.concatStringsSep " " (builtins.attrNames intersection);
|
||||||
|
mask = builtins.mapAttrs (name: value: builtins.throw
|
||||||
|
"unionOfDisjoint: collision on ${name}; complete list: ${collisions}")
|
||||||
|
intersection;
|
||||||
|
in
|
||||||
|
(x // y) // mask;
|
||||||
|
|
||||||
/*** deprecated stuff ***/
|
/*** deprecated stuff ***/
|
||||||
|
|
||||||
zipWithNames = zipAttrsWithNames;
|
zipWithNames = zipAttrsWithNames;
|
||||||
|
@ -2192,7 +2192,10 @@ with pkgs;
|
|||||||
|
|
||||||
brewtarget = libsForQt514.callPackage ../applications/misc/brewtarget { } ;
|
brewtarget = libsForQt514.callPackage ../applications/misc/brewtarget { } ;
|
||||||
|
|
||||||
stdenvBootstrapTools = if stdenv.hostPlatform.isDarwin then
|
# Derivation's result is not used by nixpkgs. Useful for validation for
|
||||||
|
# regressions of bootstrapTools on hydra and on ofborg. Example:
|
||||||
|
# pkgsCross.aarch64-multiplatform.freshBootstrapTools.build
|
||||||
|
freshBootstrapTools = if stdenv.hostPlatform.isDarwin then
|
||||||
callPackage ../stdenv/darwin/make-bootstrap-tools.nix {
|
callPackage ../stdenv/darwin/make-bootstrap-tools.nix {
|
||||||
localSystem = stdenv.buildPlatform;
|
localSystem = stdenv.buildPlatform;
|
||||||
crossSystem =
|
crossSystem =
|
||||||
@ -2200,7 +2203,7 @@ with pkgs;
|
|||||||
}
|
}
|
||||||
else if stdenv.hostPlatform.isLinux then
|
else if stdenv.hostPlatform.isLinux then
|
||||||
callPackage ../stdenv/linux/make-bootstrap-tools.nix {}
|
callPackage ../stdenv/linux/make-bootstrap-tools.nix {}
|
||||||
else throw "stdenvBootstrapTools: unknown hostPlatform ${stdenv.hostPlatform.config}";
|
else throw "freshBootstrapTools: unknown hostPlatform ${stdenv.hostPlatform.config}";
|
||||||
|
|
||||||
boxes = callPackage ../tools/text/boxes { };
|
boxes = callPackage ../tools/text/boxes { };
|
||||||
|
|
||||||
|
@ -30,7 +30,7 @@ let
|
|||||||
"aarch64"
|
"aarch64"
|
||||||
] (arch: builtins.elem "${arch}-darwin" systemsWithAnySupport);
|
] (arch: builtins.elem "${arch}-darwin" systemsWithAnySupport);
|
||||||
|
|
||||||
jobs =
|
nonPackageJobs =
|
||||||
{ tarball = import ./make-tarball.nix { inherit pkgs nixpkgs officialRelease supportedSystems; };
|
{ tarball = import ./make-tarball.nix { inherit pkgs nixpkgs officialRelease supportedSystems; };
|
||||||
|
|
||||||
metrics = import ./metrics.nix { inherit pkgs nixpkgs; };
|
metrics = import ./metrics.nix { inherit pkgs nixpkgs; };
|
||||||
@ -167,7 +167,9 @@ let
|
|||||||
(system: {
|
(system: {
|
||||||
inherit
|
inherit
|
||||||
(import ../stdenv/linux/make-bootstrap-tools.nix {
|
(import ../stdenv/linux/make-bootstrap-tools.nix {
|
||||||
localSystem = { inherit system; };
|
pkgs = import ../.. {
|
||||||
|
localSystem = { inherit system; };
|
||||||
|
};
|
||||||
})
|
})
|
||||||
dist test;
|
dist test;
|
||||||
})
|
})
|
||||||
@ -175,7 +177,9 @@ let
|
|||||||
// optionalAttrs supportDarwin.x86_64 {
|
// optionalAttrs supportDarwin.x86_64 {
|
||||||
x86_64-darwin =
|
x86_64-darwin =
|
||||||
let
|
let
|
||||||
bootstrap = import ../stdenv/darwin/make-bootstrap-tools.nix { system = "x86_64-darwin"; };
|
bootstrap = import ../stdenv/darwin/make-bootstrap-tools.nix {
|
||||||
|
localSystem = { system = "x86_64-darwin"; };
|
||||||
|
};
|
||||||
in {
|
in {
|
||||||
# Lightweight distribution and test
|
# Lightweight distribution and test
|
||||||
inherit (bootstrap) dist test;
|
inherit (bootstrap) dist test;
|
||||||
@ -186,14 +190,25 @@ let
|
|||||||
# Cross compiled bootstrap tools
|
# Cross compiled bootstrap tools
|
||||||
aarch64-darwin =
|
aarch64-darwin =
|
||||||
let
|
let
|
||||||
bootstrap = import ../stdenv/darwin/make-bootstrap-tools.nix { system = "x86_64-darwin"; crossSystem = "aarch64-darwin"; };
|
bootstrap = import ../stdenv/darwin/make-bootstrap-tools.nix {
|
||||||
|
localSystem = { system = "x86_64-darwin"; };
|
||||||
|
crossSystem = { system = "aarch64-darwin"; };
|
||||||
|
};
|
||||||
in {
|
in {
|
||||||
# Distribution only for now
|
# Distribution only for now
|
||||||
inherit (bootstrap) dist;
|
inherit (bootstrap) dist;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
} // (mapTestOn ((packagePlatforms pkgs) // {
|
};
|
||||||
|
|
||||||
|
# Do not allow attribute collision between jobs inserted in
|
||||||
|
# 'nonPackageAttrs' and jobs pulled in from 'pkgs'.
|
||||||
|
# Conflicts usually cause silent job drops like in
|
||||||
|
# https://github.com/NixOS/nixpkgs/pull/182058
|
||||||
|
jobs = lib.attrsets.unionOfDisjoint
|
||||||
|
nonPackageJobs
|
||||||
|
(mapTestOn ((packagePlatforms pkgs) // {
|
||||||
haskell.compiler = packagePlatforms pkgs.haskell.compiler;
|
haskell.compiler = packagePlatforms pkgs.haskell.compiler;
|
||||||
haskellPackages = packagePlatforms pkgs.haskellPackages;
|
haskellPackages = packagePlatforms pkgs.haskellPackages;
|
||||||
idrisPackages = packagePlatforms pkgs.idrisPackages;
|
idrisPackages = packagePlatforms pkgs.idrisPackages;
|
||||||
|
Loading…
Reference in New Issue
Block a user