diff --git a/pkgs/overlays/unstable-from-source.nix b/pkgs/overlays/unstable-from-source.nix index 128da58..afb8f2e 100644 --- a/pkgs/overlays/unstable-from-source.nix +++ b/pkgs/overlays/unstable-from-source.nix @@ -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 {