2019-03-05 03:43:53 +03:00
|
|
|
let
|
|
|
|
|
|
|
|
nixpkgs = import ./nixpkgs.nix;
|
|
|
|
nixcrpkgs = import ./nixcrpkgs.nix;
|
|
|
|
crossdeps = import ./crossdeps.nix;
|
|
|
|
|
|
|
|
release =
|
|
|
|
env_name: env: {
|
|
|
|
inherit env env_name;
|
|
|
|
deps = crossdeps env;
|
|
|
|
};
|
|
|
|
|
|
|
|
linux64 = release "linux64" nixcrpkgs.linux64;
|
|
|
|
darwin = release "darwin" nixcrpkgs.mac;
|
|
|
|
|
|
|
|
ent = env:
|
|
|
|
import ./pkgs/ent/cross.nix env;
|
|
|
|
|
2019-06-25 00:41:54 +03:00
|
|
|
ge-additions = env:
|
|
|
|
import ./pkgs/ge-additions/cross.nix env;
|
|
|
|
|
2020-05-14 21:21:13 +03:00
|
|
|
libaes_siv = env:
|
|
|
|
import ./pkgs/libaes_siv/cross.nix env;
|
|
|
|
|
2019-12-05 11:38:09 +03:00
|
|
|
urbit = { env, debug }:
|
|
|
|
import ./pkgs/urbit/release.nix env {
|
|
|
|
inherit debug;
|
|
|
|
name = if debug then "urbit-debug" else "urbit";
|
|
|
|
ent = ent env;
|
|
|
|
ge-additions = ge-additions env;
|
2020-05-14 21:21:13 +03:00
|
|
|
libaes_siv = libaes_siv env;
|
2019-12-05 11:38:09 +03:00
|
|
|
};
|
2019-03-05 03:43:53 +03:00
|
|
|
|
2019-05-02 23:13:48 +03:00
|
|
|
builds-for-platform = plat:
|
|
|
|
plat.deps // {
|
|
|
|
inherit (plat.env) curl libgmp libsigsegv ncurses openssl zlib lmdb;
|
|
|
|
inherit (plat.env) cmake_toolchain;
|
2019-06-25 00:41:54 +03:00
|
|
|
ent = ent plat;
|
|
|
|
ge-additions = ge-additions plat;
|
2020-05-14 21:21:13 +03:00
|
|
|
libaes_siv = libaes_siv plat;
|
2019-12-05 11:38:09 +03:00
|
|
|
urbit = urbit { env = plat; debug = false; };
|
|
|
|
urbit-debug = urbit { env = plat; debug = true; };
|
2019-05-02 23:13:48 +03:00
|
|
|
};
|
2019-03-05 03:43:53 +03:00
|
|
|
|
2019-05-02 23:13:48 +03:00
|
|
|
darwin_extra = {
|
|
|
|
inherit (darwin.env) ranlib ld sdk ar toolchain tapi strip;
|
2019-03-05 03:43:53 +03:00
|
|
|
};
|
|
|
|
|
2019-05-02 23:13:48 +03:00
|
|
|
in
|
2019-03-05 03:43:53 +03:00
|
|
|
|
2019-05-02 23:13:48 +03:00
|
|
|
{
|
|
|
|
linux64 = builds-for-platform linux64;
|
|
|
|
darwin = darwin_extra // builds-for-platform darwin;
|
2019-03-05 03:43:53 +03:00
|
|
|
}
|