2
0
Fork 0
genodepkgs/default.nix

31 lines
778 B
Nix

let
pkgOverlay = self: super:
# Overlay of locally defined packages
{
genode = super.callPackage ./upstream { };
dhall = super.callPackage ./dhall { };
};
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";
rev = "e4d734ace275cae70a776771d034c051956c9cab";
};
in { nixpkgs ? import nixpkgs' }:
nixpkgs {
# Evaluate an overlayed Nixpkgs for a Genode target
config.allowUnsupportedSystem = true;
crossSystem = {
isx86_64 = true;
isGenode = true;
imports = [ ./platform.nix ];
};
overlays = [ toolchainOverlay pkgOverlay ];
}