forked from reflex-frp/reflex-platform
-
Notifications
You must be signed in to change notification settings - Fork 0
/
cache.nix
22 lines (22 loc) · 904 Bytes
/
cache.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
with import ./. {};
let inherit (nixpkgs.lib) optionals;
inputs = builtins.concatLists [
(builtins.attrValues sources)
(map (system: (import ./. { inherit system; iosSupportForce = true; }).tryReflexShell) cacheTargetSystems)
];
getOtherDeps = reflexPlatform: [
reflexPlatform.stage2Script
reflexPlatform.nixpkgs.cabal2nix
] ++ builtins.concatLists (map
(crossPkgs: optionals (crossPkgs != null) [
crossPkgs.buildPackages.haskellPackages.cabal2nix
]) [
reflexPlatform.nixpkgsCross.ios.arm64
reflexPlatform.nixpkgsCross.android.arm64Impure
reflexPlatform.nixpkgsCross.android.armv7aImpure
]
);
otherDeps = builtins.concatLists (
map (system: getOtherDeps (import ./. { inherit system; })) cacheTargetSystems
) ++ [(import ./benchmark.nix {})];
in pinBuildInputs "reflex-platform" inputs otherDeps