Basics for building PostgREST with Nix (#1489)

* Add GHC options used with stack to postgrest.cabal

* Add a Nix derivation for just the executable.
This commit is contained in:
Remo
2020-04-21 11:59:00 -05:00
committed by GitHub
parent ae77cf9a08
commit 24db4a1e25
8 changed files with 223 additions and 0 deletions
+19
View File
@@ -0,0 +1,19 @@
self: super:
# Overlay that adds the `gitignoreSource` function from Hercules-CI.
# This function is useful for filtering which files are added to the Nix store.
# See: https://github.com/hercules-ci/gitignore.nix
# To update to a newer revision, the simplest way is to add a new commit hash
# from GitHub under `rev` and to then add the hash that Nix suggests on first
# use.
{
gitignoreSource =
let
gitignoreSrc = super.fetchFromGitHub {
owner = "hercules-ci";
repo = "gitignore";
rev = "2ced4519f865341adcb143c5d668f955a2cb997f";
sha256 = "sha256:0fc5bgv9syfcblp23y05kkfnpgh3gssz6vn24frs8dzw39algk2z";
};
in (super.callPackage gitignoreSrc {}).gitignoreSource;
}