@@ -1,5 +1,9 @@
1+# This module exposes a tool for several platforms that can be used to inject
2+# configuration information into a canonical location. It also provides a haskell
3+# package that can be used to retrieve the injected configuration on each supported
4+# platform.
15{ nixpkgs
2−, filterGitSource
6+, filterGitSource # TODO define this in obelisk
37}:
48let injectConfig = config: assets: nixpkgs.runCommand "inject-config" {} ''
59 set -x
@@ -12,8 +16,7 @@ let injectConfig = config: assets: nixpkgs.runCommand "inject-config" {} ''
1216 cp -a "${config}"/* "$out/config"
1317 '';
1418in with nixpkgs.haskell.lib; {
15− haskellPackage = self:
16− self.callCabal2nix "obelisk-executable-config" (filterGitSource ./lookup) {};
19+ haskellPackage = self: self.callPackage (filterGitSource ./hs) {};
1720 platforms = {
1821 android = {
1922 # Inject the given config directory into an android assets folder
@@ -23,5 +26,7 @@ in with nixpkgs.haskell.lib; {
2326 # Inject the given config directory into an iOS app
2427 inject = injectConfig;
2528 };
29+ web = {
30+ };
2631 };
2732}