pkgs/overlays/unstable-from-source: use lib.systems.equals for comparing platforms
This commit is contained in:
parent
ab2379f5e5
commit
5e16b1b0b1
1 changed files with 4 additions and 2 deletions
|
@ -27,11 +27,13 @@ let
|
||||||
# crossOverlays -> partial of pkgs.overlays
|
# crossOverlays -> partial of pkgs.overlays
|
||||||
# crossOverlays are merged to overlays, not sure what issues that might raise.
|
# crossOverlays are merged to overlays, not sure what issues that might raise.
|
||||||
# ignoring.
|
# ignoring.
|
||||||
} // (if nixpkgs.stdenv.buildPlatform == nixpkgs.stdenv.hostPlatform then {} else {
|
} // self.lib.optionalAttrs (
|
||||||
|
self.lib.systems.equals nixpkgs.stdenv.buildPlatform nixpkgs.stdenv.hostPlatform
|
||||||
|
) {
|
||||||
# workaround for some odd structured packages that changes behaviour
|
# workaround for some odd structured packages that changes behaviour
|
||||||
# when crossSystem is passed.
|
# when crossSystem is passed.
|
||||||
crossSystem = sanitizePlatform nixpkgs.stdenv.hostPlatform;
|
crossSystem = sanitizePlatform nixpkgs.stdenv.hostPlatform;
|
||||||
});
|
};
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
"${attributeName}" = if useUnstable then unstablePkgsForNixpkgs self else self;
|
"${attributeName}" = if useUnstable then unstablePkgsForNixpkgs self else self;
|
||||||
|
|
Loading…
Add table
Reference in a new issue