nh2 / static-haskell-nix

easily build most Haskell programs into fully static Linux executables
388 stars 36 forks source link

Use bash from nix in scripts #66

Closed rtimush closed 4 years ago

rtimush commented 4 years ago

Shell scripts in static-haskell-nix depend on #!/usr/bin/env bash which doesn't necessarily come from nix (or may not even exist). Using writeShellScript looks like a safer alternative. Discovered the issue and tested the fix by running inside the nixos/nix docker image which does not include bash by default.

avanov commented 4 years ago

I have the same issue with static-stack2nix-builder inside nixos/nix docker images (seems like the only way so far to compile statically for Linux targets on macOS). Would be really nice to see it merged.

nh2 commented 4 years ago

Sorry for the delay, I wanted to get nixpkgs master build again first with #69. Merging.