pkgs/overlays/unstable-from-source: remove "emulator" attribute from forwarded platform
https://github.com/NixOS/nixpkgs/pull/324071 broke the overlay
This commit is contained in:
parent
f7e48890cd
commit
d4e7760eb8
1 changed files with 6 additions and 2 deletions
|
@ -6,10 +6,14 @@ self: super:
|
|||
|
||||
let
|
||||
useUnstable = self.config.useUnstable or true;
|
||||
sanitizePlatform = platformConfig: self.lib.removeAttrs platformConfig [
|
||||
"emulator"
|
||||
"emulatorAvailable"
|
||||
];
|
||||
|
||||
unstablePkgsForNixpkgs = nixpkgs: import unstableSource {
|
||||
# localSystem -> pkgs.stdenv.buildPlatform
|
||||
localSystem = nixpkgs.stdenv.buildPlatform;
|
||||
localSystem = sanitizePlatform nixpkgs.stdenv.buildPlatform;
|
||||
# crossSystem -> pkgs.stdenv.hostPlatform or pkgs.stdenv.targetPlatform ??
|
||||
# passing below
|
||||
# config -> pkgs.config
|
||||
|
@ -22,7 +26,7 @@ let
|
|||
} // (if nixpkgs.stdenv.buildPlatform == nixpkgs.stdenv.hostPlatform then {} else {
|
||||
# workaround for some odd structured packages that changes behaviour
|
||||
# when crossSystem is passed.
|
||||
crossSystem = nixpkgs.stdenv.hostPlatform;
|
||||
crossSystem = sanitizePlatform nixpkgs.stdenv.hostPlatform;
|
||||
});
|
||||
in
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue