2 config.android_sdk.accept_license = true;
3 iosSdkVersion = "10.2";
5, local-self ? import ./. self-args
9 inherit (local-self.nixpkgs) lib runCommand nix;
11 cacheBuildSystems = [ "x86_64-linux" "x86_64-darwin" ];
13 obeliskPackagesCommon = [
16 "obelisk-executable-config-lookup"
19 obeliskPackagesBackend = obeliskPackagesCommon ++ [
20 "obelisk-asset-manifest"
21 "obelisk-asset-serve-snap"
25 "obelisk-executable-config-inject"
33 pnameToAttrs = pkgsSet: pnames:
35 (name: { inherit name; value = pkgsSet.${name}; })
39 extractDeps = x: (x.override {
41 out = builtins.concatLists [
42 (drv.buildDepends or [])
43 (drv.libraryHaskellDepends or [])
44 (drv.executableHaskellDepends or [])
48 in pkgAttrs: builtins.concatLists (map extractDeps (builtins.attrValues pkgAttrs));
50 perPlatform = lib.genAttrs cacheBuildSystems (system: let
51 obelisk = import ./. (self-args // { inherit system; });
52 reflex-platform = obelisk.reflex-platform;
54 obelisk.haskellPackageSets.ghc
55 obeliskPackagesBackend;
57 obelisk.haskellPackageSets.ghcjs
58 obeliskPackagesCommon;
59 cachePackages = builtins.concatLists [
60 (builtins.attrValues ghc)
61 (builtins.attrValues ghcjs)
64 (lib.optional reflex-platform.androidSupport androidSkeleton)
65 (lib.optional reflex-platform.iosSupport iosSkeleton)
66 [ command serverSkeletonExe serverSkeletonShell ]
68 command = obelisk.command;
69 skeleton = import ./skeleton { inherit obelisk; };
70 serverSkeletonExe = skeleton.exe;
71 # TODO fix nixpkgs so it doesn't try to run the result of haskell shells as setup hooks.
72 serverSkeletonShell = local-self.nixpkgs.runCommand "shell-safe-for-dep" {} ''
74 echo "return" >> "$out"
75 cat "${skeleton.shells.ghc}" >> "$out"
77 androidSkeleton = (import ./skeleton { inherit obelisk; }).android.frontend;
78 iosSkeleton = (import ./skeleton { inherit obelisk; }).ios.frontend;
86 cache = reflex-platform.pinBuildInputs "obelisk-${system}" cachePackages;
87 } // lib.optionalAttrs reflex-platform.androidSupport {
88 inherit androidSkeleton;
89 } // lib.optionalAttrs reflex-platform.iosSupport {
93 metaCache = local-self.reflex-platform.pinBuildInputs
95 (map (a: a.cache) (builtins.attrValues perPlatform));
97in 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