sigil/default.nix
Emery Hemingway 693ac303e0 Use a host-only Nixpkgs for test environment
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.
2019-10-07 17:21:06 +02:00

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 ];
}