forked from reflex-frp/reflex-platform
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcache.nix
More file actions
20 lines (20 loc) · 826 Bytes
/
cache.nix
File metadata and controls
20 lines (20 loc) · 826 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
with import ./. {};
let inherit (nixpkgs.lib) optionals;
inputs = builtins.concatLists [
(builtins.attrValues sources)
(map (system: import ./shell.nix { inherit system; }) 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);
in pinBuildInputs "reflex-platform" inputs otherDeps