38 lines
1.1 KiB
Nix
38 lines
1.1 KiB
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' = builtins.fetchGit {
|
|
# A branch of Nixpkgs with a custom "crossSystem" mechanism
|
|
url = "https://github.com/ehmry/nixpkgs.git";
|
|
ref = "hybrid-19.09";
|
|
rev = "9a704b7def9bc9ea04d12d6a0d55ebebe0af982a";
|
|
};
|
|
|
|
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 ];
|
|
}
|