@@ -45,6 +45,12 @@ with pkgs.lib;
46 inherit reflex-platform;
46 inherit reflex-platform;
47 command = ghcObelisk.obelisk-command;
47 command = ghcObelisk.obelisk-command;
48+ #TODO: Why can't I build ./skeleton directly as a derivation? `nix-build -E ./.` doesn't work
49+ skeleton = pkgs.runCommand "skeleton" {
48 nullIfAbsent = p: if pathExists p then p else null;
54 nullIfAbsent = p: if pathExists p then p else null;
49 #TODO: Avoid copying files within the nix store. Right now, obelisk-asset-manifest-generate copies files into a big blob so that the android/ios static assets can be imported from there; instead, we should get everything lined up right before turning it into an APK, so that copies, if necessary, only exist temporarily.
55 #TODO: Avoid copying files within the nix store. Right now, obelisk-asset-manifest-generate copies files into a big blob so that the android/ios static assets can be imported from there; instead, we should get everything lined up right before turning it into an APK, so that copies, if necessary, only exist temporarily.
50 processAssets = { src, packageName ? "static", moduleName ? "Static" }: pkgs.runCommand "asset-manifest" {
56 processAssets = { src, packageName ? "static", moduleName ? "Static" }: pkgs.runCommand "asset-manifest" {
@@ -60,8 +66,8 @@ rec {
61 # An Obelisk project is a reflex-platform project with a predefined layout and role for each component
67 # An Obelisk project is a reflex-platform project with a predefined layout and role for each component
63− { base ? ./..
69+ base:
64− , android ? null #TODO: Better error when missing
70+ { android ? null #TODO: Better error when missing
65 , ios ? null #TODO: Better error when missing
71 , ios ? null #TODO: Better error when missing
66 }: reflex-platform.project ({ nixpkgs, ... }: with nixpkgs.haskell.lib;
72 }: reflex-platform.project ({ nixpkgs, ... }: with nixpkgs.haskell.lib;
67 let frontendName = "frontend";
73 let frontendName = "frontend";