mlton: add one-liner from old derivation to fix source files
Updates from-git-source.nix to use the one-liner to fix up the bash
shebang lines.
commitfd9a07c7d4dc1679805e2699bdea8ade3c0ed1d9
authorSophia Donataccio <srdqty@gmail.com>
dateFri 12 Oct 2018, 00:36 (8 years ago)
parenta130228
pkgs/development/compilers/mlton/from-git-source.nix+2
@@ -18,6 +18,8 @@ stdenv.mkDerivation {
1818 buildInputs = [mltonBootstrap gmp];
1919
2020 preBuild = ''
21+ find . -type f | grep -v -e '\.tgz''$' | xargs sed -i "s@/usr/bin/env bash@$(type -p bash)@"
22+
2123 makeFlagsArray=(
2224 MLTON_VERSION="${version} ${rev}"
2325 CC="$(type -p cc)"