2019-09-27 12:38:35 +02:00
|
|
|
# SPDX-FileCopyrightText: Emery Hemingway
|
|
|
|
#
|
|
|
|
# SPDX-License-Identifier: LicenseRef-Hippocratic-1.1
|
|
|
|
|
2019-07-30 12:48:01 +02:00
|
|
|
let
|
2019-09-24 00:59:53 +02:00
|
|
|
pkgOverlay = self: super:
|
|
|
|
# Overlay of locally defined packages
|
2019-09-24 12:45:57 +02:00
|
|
|
with self; {
|
2019-09-30 14:40:09 +02:00
|
|
|
depot = callPackage ./depot { };
|
2019-10-03 15:27:11 +02:00
|
|
|
dhallPackages = super.dhallPackages // (callPackage ./dhall { });
|
2019-09-24 12:45:57 +02:00
|
|
|
genode = callPackage ./upstream { };
|
|
|
|
nova = callPackage ./NOVA { };
|
2019-07-30 12:48:01 +02:00
|
|
|
};
|
|
|
|
|
2019-09-24 00:59:53 +02:00
|
|
|
toolchainOverlay = import ./toolchain-overlay;
|
|
|
|
# Overlay of toolchain patches
|
2019-07-30 12:48:01 +02:00
|
|
|
|
2019-09-24 00:59:53 +02:00
|
|
|
nixpkgs' = builtins.fetchGit {
|
|
|
|
# A branch of Nixpkgs with a custom "crossSystem" mechanism
|
|
|
|
url = "https://github.com/ehmry/nixpkgs.git";
|
2019-10-06 00:58:20 +02:00
|
|
|
ref = "hybrid-19.09";
|
|
|
|
rev = "9a704b7def9bc9ea04d12d6a0d55ebebe0af982a";
|
2019-09-24 00:59:53 +02:00
|
|
|
};
|
2019-07-30 12:48:01 +02:00
|
|
|
|
2019-10-05 19:10:25 +02:00
|
|
|
in { nixpkgs ? nixpkgs', dhall-haskell ? ./dhall-haskell.nix }:
|
2019-07-30 12:48:01 +02:00
|
|
|
|
2019-09-24 12:45:57 +02:00
|
|
|
import nixpkgs {
|
2019-09-24 00:59:53 +02:00
|
|
|
# Evaluate an overlayed Nixpkgs for a Genode target
|
|
|
|
config.allowUnsupportedSystem = true;
|
|
|
|
crossSystem = {
|
|
|
|
isx86_64 = true;
|
|
|
|
isGenode = true;
|
|
|
|
imports = [ ./platform.nix ];
|
|
|
|
};
|
2019-10-05 19:10:25 +02:00
|
|
|
overlays = [ (toolchainOverlay dhall-haskell) pkgOverlay ];
|
2019-07-30 12:48:01 +02:00
|
|
|
}
|