@@ -12,9 +12,6 @@ Obelisk is an opinionated, batteries-included framework for building production-
1212 - [Who should consider using it?](#who-should-consider-using-it)
1313- [Installing Obelisk](#installing-obelisk)
1414- [Developing an Obelisk project](#developing-an-obelisk-project)
15− - [Adding Packages](#adding-packages)
16− - [Adding Package Overrides](#adding-package-overrides)
17− - [Running over HTTPS](#running-over-https)
1815 - [IDE Support](#ide-support)
1916 - [Terminal-based feedback](#terminal-based-feedback)
2017- [Deploying](#deploying)
@@ -98,62 +95,6 @@ Firefox will not be able to properly run the development website due to [issue 4
9895
9996Every time you change the Haskell source files in frontend, common or backend, `ob run` will automatically recompile the modified files and reload the server. Furthermore, it will display on screen compilation errors and warnings if any.
10097
101−### Adding packages
102−
103−In order to add package dependencies, declare them under the build-depends field in the appropriate cabal files (backend, common, and frontend each have their own). The corresponding Nix packages will automatically be selected when building.
104−
105−### Adding package overrides
106−
107−To add a version override to any Haskell package, or to add a Haskell package that doesn't exist in the nixpkgs used by Obelisk, use the `overrides` attribute in your project's `default.nix`. For example, to use a specific version of the `aeson` package fetched from GitHub and a specific version of the `waargonaut` package fetched from Hackage, your `default.nix` will look like:
108−
109−```nix
110−# ...
111−project ./. ({ pkgs, ... }: {
112−# ...
113− overrides = self: super: let
114− aesonSrc = pkgs.fetchFromGitHub {
115− owner = "obsidiansystems";
116− repo = "aeson-gadt-th";
117− rev = "ed573c2cccf54d72aa6279026752a3fecf9c1383";
118− sha256 = "08q6rnz7w9pn76jkrafig6f50yd0f77z48rk2z5iyyl2jbhcbhx3";
119− };
120− in
121− {
122− aeson = self.callCabal2nix "aeson" aesonSrc {};
123− waargonaut = self.callHackageDirect {
124− pkg = "waargonaut";
125− ver = "0.8.0.1";
126− sha256 = "1zv28np3k3hg378vqm89v802xr0g8cwk7gy3mr77xrzy5jbgpa39";
127− } {};
128− };
129−# ...
130−```
131−
132−For further information see [the Haskell section](https://nixos.org/nixpkgs/manual/#users-guide-to-the-haskell-infrastructure) of nixpkgs Contributors Guide.
133−
134−### Adding extra local packages
135−
136−If the standard packages (`frontend`, `backend`, and `common`) are not
137−enough, to add more local Haskell packages, define them with the
138−`packages` parameter. The sources of these packages will be
139−automatically reloaded by `ob run`.
140−
141−```nix
142−# ...
143−project ./. ({ pkgs, ... }: {
144−# ...
145− packages = {
146− another = ./another;
147− };
148−# ...
149−```
150−
151−### Running over HTTPS
152−
153−To run your app locally over HTTPS, update the protocol in `config/common/route` to `https`, and then use `ob run` as normal.
154−
155−Since Obelisk generates a self-signed certificate for running HTTPS, the browser will issue a warning about using an invalid certificate. On Chrome, you can go to `chrome://flags/#allow-insecure-localhost` to enable invalid certificates for localhost.
156−
15798### IDE Support
15899
159100#### Terminal-based feedback