haskell-ghc-mod: don't rely on /bin/sh
This commit is contained in:
parent
66fa31308c
commit
41f0df1068
@ -26,7 +26,7 @@ cabal.mkDerivation (self: {
|
||||
mv $pname-$version emacs/site-lisp
|
||||
mv $out/bin/ghc-mod $out/ghc-mod
|
||||
cat - > $out/bin/ghc-mod <<EOF
|
||||
#!/bin/sh
|
||||
#! ${self.stdenv.shell}
|
||||
COMMAND=\$1
|
||||
shift
|
||||
eval exec $out/ghc-mod \$COMMAND \$( ${self.ghc.GHCGetPackages} ${self.ghc.version} | tr " " "\n" | tail -n +2 | paste -d " " - - | sed 's/.*/-g "&"/' | tr "\n" " ") "\$@"
|
||||
|
Loading…
Reference in New Issue
Block a user