2
0
Fork 0
genodepkgs/default.nix

46 lines
1.0 KiB
Nix
Raw Normal View History

2019-09-13 12:08:40 +02:00
{ nixpkgs ? import <nixpkgs>, system ? { config = "x86_64-unknown-genode"; } }:
2019-07-30 12:48:01 +02:00
with builtins;
let
2019-09-13 12:08:40 +02:00
nixpkgs' = nixpkgs {
config.allowUnsupportedSystem = true;
crossSystem = {
isx86_64 = true;
isGenode = true;
imports = [ ./platform.nix ];
2019-07-30 12:48:01 +02:00
};
2019-09-13 12:08:40 +02:00
overlays = [ (import ./overlay) ];
};
2019-07-30 12:48:01 +02:00
2019-09-13 12:08:40 +02:00
portIncludes = ports:
listToAttrs (map (name:
let port = getAttr name ports;
in {
name = name + "_include";
value = getAttr "include" port;
}) (attrNames ports));
2019-07-30 12:48:01 +02:00
toolchain = import ./tool/toolchain.nix;
2019-09-13 12:08:40 +02:00
in rec {
2019-07-30 12:48:01 +02:00
inherit toolchain;
nixpkgs = nixpkgs';
dhall = import ./dhall { inherit nixpkgs; };
2019-09-13 12:08:40 +02:00
upstream = import ./upstream { inherit nixpkgs; };
2019-07-30 12:48:01 +02:00
ports = import ./ports { inherit nixpkgs toolchain upstream; };
2019-09-13 12:08:40 +02:00
libretro = import ./libretro {
inherit nixpkgs upstream toolchain;
inherit (ports) stdcxx libc;
};
2019-07-30 12:48:01 +02:00
2019-09-13 12:08:40 +02:00
shell = import ./shell.nix {
inherit nixpkgs toolchain;
dhallPackages = dhall;
pkgs = { inherit upstream ports; };
};
2019-07-30 12:48:01 +02:00
}