2018-02-23 16:55:04 +00:00
|
|
|
let
|
2019-02-19 23:22:52 +00:00
|
|
|
nixpkgsFn = import (fetchTarball {
|
2019-02-06 20:02:02 +00:00
|
|
|
url = https://github.com/NixOS/nixpkgs/archive/642499faefb17c3d36e074cf35b189f75ba43ee2.tar.gz;
|
|
|
|
sha256 = "16j7gl3gg839fy54z5v4aap8lgf1ffih5swmfk62zskk30nwzfbi";
|
2019-02-19 23:22:52 +00:00
|
|
|
});
|
|
|
|
|
|
|
|
# nixcrpkgs = import (fetchTarball {
|
|
|
|
# url = https://github.com/DavidEGrayson/nixcrpkgs/archive/606e5fac74204643c8ca48dd73ce239b2f821d69.tar.gz;
|
|
|
|
# sha256 = "19dn7i200xsv8s92kxymv3nd87jncmp3ki8pw77v2rxfvn8ldg34";
|
|
|
|
# }) {};
|
|
|
|
|
|
|
|
nixpkgs = nixpkgsFn {};
|
|
|
|
|
|
|
|
targets = {
|
|
|
|
windows = {
|
|
|
|
config = "x86_64-pc-mingw32";
|
|
|
|
libc = "msvcrt";
|
|
|
|
platform = {};
|
|
|
|
openssl.system = "mingw";
|
|
|
|
};
|
|
|
|
|
|
|
|
iphone = {
|
|
|
|
config = "aarch64-apple-ios";
|
|
|
|
# config = "aarch64-apple-darwin14";
|
|
|
|
sdkVer = "10.2";
|
|
|
|
xcodeVer = "8.2";
|
|
|
|
xcodePlatform = "iPhoneOS";
|
|
|
|
useiOSPrebuilt = true;
|
|
|
|
platform = {};
|
|
|
|
};
|
|
|
|
|
|
|
|
android = {
|
|
|
|
config = "armv7a-unknown-linux-androideabi";
|
|
|
|
sdkVer = "24";
|
|
|
|
ndkVer = "18b";
|
|
|
|
platform = nixpkgs.platforms.armv7a-android;
|
|
|
|
useAndroidPrebuilt = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
raspberryPi = rec {
|
|
|
|
config = "armv6l-unknown-linux-gnueabihf";
|
|
|
|
platform = nixpkgs.platforms.raspberrypi;
|
|
|
|
};
|
|
|
|
|
|
|
|
raspberryPi2 = {
|
|
|
|
config = "armv7l-unknown-linux-gnueabihf";
|
|
|
|
platform = nixpkgs.platforms.armv7l-hf-multiplatform;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
nimbus = pkgs: pkgs.callPackage ./nix/nimbus.nix {};
|
|
|
|
|
|
|
|
mapAttrs = nixpkgs.lib.attrsets.mapAttrs;
|
|
|
|
crossPackages = mapAttrs (target: conf: nixpkgsFn { crossSystem = conf; }) targets;
|
|
|
|
crossBulds = mapAttrs (target: packages: nimbus packages) crossPackages;
|
2018-02-23 16:55:04 +00:00
|
|
|
|
|
|
|
in
|
|
|
|
|
2019-02-19 23:22:52 +00:00
|
|
|
(nimbus nixpkgs) // crossBulds
|
2018-02-23 16:55:04 +00:00
|
|
|
|