Skip to content

Commit cb9089d

Browse files
authored
Merge pull request #16 from lamdera/fix-nixos-compilation
Fix compilation on NixOS
2 parents 478abc9 + c74f696 commit cb9089d

File tree

9 files changed

+13
-8
lines changed

9 files changed

+13
-8
lines changed

Diff for: addSanity.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22
set -ex
33

44
# $(replace_in_file pattern file)

Diff for: build.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22
set -euo pipefail
33

44
PKG_ENV_FILE="_build/shake-package-env-$(ghc --numeric-version)"

Diff for: distribution/build-linux-arm64-musl.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ declare -f build_binary_docker
103103
# docker -H ssh://root@lamdera-falkenstein-arm64-1 run \
104104
# -v /root/compiler:/root/compiler \
105105
# -it registry.gitlab.b-data.ch/ghc/ghc4pandoc:9.2.7 \
106-
# /bin/bash
106+
# /usr/bin/env bash
107107

108108
mkdir -p $dist
109109

Diff for: distribution/common.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22

33
export version="1.2.1"

Diff for: ext-package-cache/testCompress.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22
set -ex
33

44
# tar cf - . | zip backup -

Diff for: extra/npm/publish-all.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22
set -ex
33

44
# The publish will fail if the package name and version combination already exists in the specified registry.

Diff for: package/linux/build-in-docker.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22

33
set -euo pipefail
44

Diff for: removeSanity.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22
set -ex
33

44
if [ "$OS" != 'Darwin' ]; then

Diff for: stack.yaml

+5
Original file line numberDiff line numberDiff line change
@@ -47,3 +47,8 @@ packages:
4747
# https://discourse.haskell.org/t/announce-ghcup-0-1-15-rc2-windows-pre-release/2616/14
4848
# however it seems stack automatically includes a bunch of paths, don't think this helped?
4949
# - C:\ghcup\msys64\mingw64\include
50+
51+
nix:
52+
packages:
53+
- pkg-config
54+
- zlib

0 commit comments

Comments
 (0)