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
11 injectConfig = config: assets: runCommand "inject-config" {} (''
14 cp --no-preserve=mode -Lr "${assets}" $out/static
16 '' + lib.optionalString (!(builtins.isNull config)) ''
17 if ! mkdir $out/config; then
18 2>&1 echo config directory already exists or could not be created
21 cp -a "${config}"/* "$out/config"
22 # Needed for android deployments
23 find "$out/config" -type f -printf '%P\0' > "$out/config.files"
28 haskellOverlay = self: super: {
29 obelisk-executable-config-lookup = self.callCabal2nix "obelisk-executable-config-lookup" (obeliskCleanSource ./lookup) {};
34 # Inject the given config directory into an android assets folder
35 inject = injectConfig;
38 # Inject the given config directory into an iOS app
39 inject = injectConfig;
42 inject = self: self.callCabal2nix "obelisk-executable-config-inject" (obeliskCleanSource ./inject) {};
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