2 config.android_sdk.accept_license = true;
3 iosSdkVersion = "10.2";
5, local-self ? import ./. self-args
13 inherit (local-self.nixpkgs) lib runCommand nix;
14 cacheBuildSystems = supportedSystems;
16 obeliskPackagesCommon = [
19 "obelisk-executable-config-lookup"
22 obeliskPackagesBackend = obeliskPackagesCommon ++ [
23 "obelisk-asset-manifest"
24 "obelisk-asset-serve-snap"
28 "obelisk-executable-config-inject"
36 pnameToAttrs = pkgsSet: pnames:
38 (name: { inherit name; value = pkgsSet.${name}; })
42 if lib.isDerivation v then [v]
43 else if lib.isAttrs v then lib.concatMap collect (builtins.attrValues v)
44 else if lib.isList v then lib.concatMap collect v
47 perPlatform = lib.genAttrs cacheBuildSystems (system: let
48 reflex-platform = import ./dep/reflex-platform { inherit system; };
50 mkPerProfiling = profiling: let
51 obelisk = import ./. (self-args // { inherit system profiling; });
53 obelisk.haskellPackageSets.ghc
54 obeliskPackagesBackend;
56 obelisk.haskellPackageSets.ghcjs
57 obeliskPackagesCommon;
58 command = obelisk.command;
59 skeleton = import ./skeleton { inherit obelisk; };
60 serverSkeletonExe = skeleton.exe;
61 # TODO fix nixpkgs so it doesn't try to run the result of haskell shells as setup hooks.
62 serverSkeletonShell = local-self.nixpkgs.runCommand "shell-safe-for-dep" {} ''
64 echo "return" >> "$out"
65 cat "${skeleton.shells.ghc}" >> "$out"
67 androidSkeleton = (import ./skeleton { inherit obelisk; }).android.frontend;
68 iosSkeleton = (import ./skeleton { inherit obelisk; }).ios.frontend;
69 nameSuffix = if profiling then "profiled" else "unprofiled";
76 } // lib.optionalAttrs (!profiling) {
81 } // lib.optionalAttrs reflex-platform.androidSupport {
82 inherit androidSkeleton;
83 } // lib.optionalAttrs reflex-platform.iosSupport {
87 cache = reflex-platform.pinBuildInputs
88 "obelisk-${system}-${nameSuffix}"
93 profiled = mkPerProfiling true;
94 unprofiled = mkPerProfiling false;
97 cache = reflex-platform.pinBuildInputs
99 (map (p: p.cache) (builtins.attrValues perProfiling));
102 metaCache = local-self.reflex-platform.pinBuildInputs
104 (map (a: a.cache) (builtins.attrValues perPlatform));
106in perPlatform // { inherit metaCache; }
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list