@@ -99,14 +99,14 @@ In order to add package dependencies, declare them under the build-depends field
9999
100100### Adding package overrides
101101
102−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, your `default.nix` will look like:
102+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:
103103
104104```nix
105105# ...
106106project ./. ({ pkgs, ... }: {
107107# ...
108108 overrides = self: super: let
109− aeson = pkgs.fetchFromGitHub {
109+ aesonSrc = pkgs.fetchFromGitHub {
110110 owner = "obsidiansystems";
111111 repo = "aeson-gadt-th";
112112 rev = "ed573c2cccf54d72aa6279026752a3fecf9c1383";
@@ -114,7 +114,12 @@ project ./. ({ pkgs, ... }: {
114114 };
115115 in
116116 {
117− aeson = self.callCabal2nix "aeson" aeson {};
117+ aeson = self.callCabal2nix "aeson" aesonSrc {};
118+ waargonaut = self.callHackageDirect {
119+ pkg = "waargonaut";
120+ ver = "0.8.0.1";
121+ sha256 = "1zv28np3k3hg378vqm89v802xr0g8cwk7gy3mr77xrzy5jbgpa39";
122+ } {};
118123 };
119124# ...
120125```