forked from obsidiansystems/rhyolite
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrelease.nix
More file actions
30 lines (27 loc) · 867 Bytes
/
release.nix
File metadata and controls
30 lines (27 loc) · 867 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
{
self-args ? {
config.android_sdk.accept_license = true;
}
, local-self ? import ./. self-args
, supportedSystems ? [ "x86_64-linux" "x86_64-darwin" ]
}:
let
inherit (local-self) reflex-platform;
inherit (local-self.nixpkgs) lib;
perPlatform = lib.genAttrs supportedSystems (system: let
self = import ./. (self-args // { inherit system; });
reflex-platform = self.reflex-platform;
cachePackages =
(builtins.attrValues (self.rhyolitePackages self.obelisk))
++ [
self.proj.ghcjs.rhyolite-frontend
(import ./. {}).proj.ghc.rhyolite-test-suite
];
in {
cache = reflex-platform.pinBuildInputs "rhyolite-${system}" cachePackages;
});
metaCache = reflex-platform.pinBuildInputs "rhyolite-everywhere"
(map (a: a.cache) (builtins.attrValues perPlatform));
in perPlatform // {
inherit metaCache;
}