Emery Hemingway
693ac303e0
Discriminate test-packages and host-packages when building tests. This avoids the test tooling being tainted with the hostPlatform and targetPlatform of the test. For example, QEMU must be built independently and isolated from the guest platform, for the sake of test control and minimizing rebuilds.
33 lines
886 B
Nix
33 lines
886 B
Nix
# SPDX-FileCopyrightText: Emery Hemingway
|
|
#
|
|
# SPDX-License-Identifier: LicenseRef-Hippocratic-1.1
|
|
|
|
let
|
|
pkgOverlay = self: super:
|
|
# Overlay of locally defined packages
|
|
with self; {
|
|
depot = callPackage ./depot { };
|
|
dhallPackages = super.dhallPackages // (callPackage ./dhall { });
|
|
genode = callPackage ./upstream { };
|
|
nova = callPackage ./NOVA { };
|
|
solo5 = callPackage ./solo5 { };
|
|
};
|
|
|
|
toolchainOverlay = import ./toolchain-overlay;
|
|
# Overlay of toolchain patches
|
|
|
|
nixpkgs' = import ./nixpkgs.nix;
|
|
|
|
in { nixpkgs ? nixpkgs', dhall-haskell ? ./dhall-haskell.nix }:
|
|
|
|
import nixpkgs {
|
|
# Evaluate an overlayed Nixpkgs for a Genode target
|
|
config.allowUnsupportedSystem = true;
|
|
crossSystem = {
|
|
isx86_64 = true;
|
|
isGenode = true;
|
|
imports = [ ./platform.nix ];
|
|
};
|
|
overlays = [ (toolchainOverlay dhall-haskell) pkgOverlay ];
|
|
}
|