Add static build with Nix (fixes #1295) (#1494)

* Include modifications to nixpkgs and static-haskell-nix as patches.

* use the patched static-haskell-nix version

* Add cachix postgrest
This commit is contained in:
Remo Rechkemmer
2020-05-12 13:31:37 -05:00
committed by GitHub
parent 6fae07241f
commit 7c0fbf9b3f
7 changed files with 385 additions and 7 deletions
+25
View File
@@ -0,0 +1,25 @@
{ runCommand }:
{
# Apply patches to a directory.
applyPatches =
name: path: patches:
runCommand name { inherit patches; }
''
set -eou pipefail
cp -r ${path} $out
chmod -R u+w $out
for patch in $patches; do
echo "Applying patch $patch"
patch -d "$out" -p1 < "$patch"
done
'';
static-haskell-nix-postgrest-libpq =
./static-haskell-nix-postgrest-libpq.patch;
nixpkgs-revert-ghc-bootstrap =
./nixpkgs-revert-ghc-bootstrap.patch;
}