@@ -51,6 +51,13 @@ rec {
5151 } ''
5252 ln -s "$dir" "$out"
5353 '';
54+ haskellOverrides = self: super: {
55+ obelisk-asset-serve = self.callCabal2nix "obelisk-asset-serve" (hackGet ./asset + "/serve") {};
56+ obelisk-asset-manifest = self.callCabal2nix "obelisk-asset-manifest" (hackGet ./asset + "/manifest") {};
57+ obelisk-backend = self.callCabal2nix "obelisk-backend" ./backend {};
58+ obelisk-snap = self.callCabal2nix "obelisk-snap" ./snap {};
59+ obelisk-font-awesome = self.callCabal2nix "obelisk-font-awesome" (hackGet ./font-awesome) {};
60+ };
5461 nullIfAbsent = p: if pathExists p then p else null;
5562 #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.
5663 processAssets = { src, packageName ? "static", moduleName ? "Static" }: pkgs.runCommand "asset-manifest" {
@@ -81,13 +88,11 @@ rec {
8188 ${commonName} = nullIfAbsent (base + "/common");
8289 ${backendName} = nullIfAbsent (base + "/backend");
8390 };
84− overrides = self: super: {
91+ projectOverrides = self: super: {
8592 heist = doJailbreak super.heist; #TODO: Move up to reflex-platform; create tests for r-p supported packages
8693 ${staticName} = dontHaddock (self.callCabal2nix "static" assets.haskellManifest {});
87− obelisk-asset-serve = self.callCabal2nix "obelisk-asset-serve" (hackGet ./asset + "/serve") {};
88− obelisk-asset-manifest = self.callCabal2nix "obelisk-asset-manifest" (hackGet ./asset + "/manifest") {};
89− obelisk-backend = self.callCabal2nix "obelisk-backend" ./backend {};
9094 };
95+ overrides = composeExtensions haskellOverrides projectOverrides;
9196 in {
9297 inherit packages overrides;
9398 shells = {