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
6, filterGitSource # TODO define this in obelisk
8let injectConfig = config: assets: nixpkgs.runCommand "inject-config" {} ''
11 cp --no-preserve=mode -Lr "${assets}" $out/static
13 if ! mkdir $out/config; then
14 2>&1 echo config directory already exists or could not be created
17 cp -a "${config}"/* "$out/config"
19in with nixpkgs.haskell.lib; {
20 haskellPackage = self: self.callPackage (filterGitSource ./lookup) {};
23 # Inject the given config directory into an android assets folder
24 inject = injectConfig;
27 # Inject the given config directory into an iOS app
28 inject = injectConfig;
31 inject = self: self.callCabal2nix "obelisk-executable-config-inject" (filterGitSource ./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