diff options
author | Peter Simons <simons@cryp.to> | 2013-12-15 20:09:31 +0100 |
---|---|---|
committer | Peter Simons <simons@cryp.to> | 2013-12-15 22:37:41 +0100 |
commit | 3b3cc6a4ad89ca1f19003a079694ed9df95d88f3 (patch) | |
tree | 5660384bcaee825f97c73ce87a86fc41ba6d2c58 /pkgs/development | |
parent | 41f0df10681a88305cbd75c7e997e614a096fee3 (diff) | |
download | nixlib-3b3cc6a4ad89ca1f19003a079694ed9df95d88f3.tar nixlib-3b3cc6a4ad89ca1f19003a079694ed9df95d88f3.tar.gz nixlib-3b3cc6a4ad89ca1f19003a079694ed9df95d88f3.tar.bz2 nixlib-3b3cc6a4ad89ca1f19003a079694ed9df95d88f3.tar.lz nixlib-3b3cc6a4ad89ca1f19003a079694ed9df95d88f3.tar.xz nixlib-3b3cc6a4ad89ca1f19003a079694ed9df95d88f3.tar.zst nixlib-3b3cc6a4ad89ca1f19003a079694ed9df95d88f3.zip |
haskell-ghc-mod: keep the original 'ghc-mod' binary in $out/bin, not $out
Diffstat (limited to 'pkgs/development')
-rw-r--r-- | pkgs/development/libraries/haskell/ghc-mod/default.nix | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pkgs/development/libraries/haskell/ghc-mod/default.nix b/pkgs/development/libraries/haskell/ghc-mod/default.nix index b764d69fb3ba..472d25790481 100644 --- a/pkgs/development/libraries/haskell/ghc-mod/default.nix +++ b/pkgs/development/libraries/haskell/ghc-mod/default.nix @@ -24,12 +24,12 @@ cabal.mkDerivation (self: { cd .. ensureDir "$out/share/emacs" mv $pname-$version emacs/site-lisp - mv $out/bin/ghc-mod $out/ghc-mod + mv $out/bin/ghc-mod $out/bin/.ghc-mod-wrapped cat - > $out/bin/ghc-mod <<EOF #! ${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" " ") "\$@" + eval exec $out/bin/.ghc-mod-wrapped \$COMMAND \$( ${self.ghc.GHCGetPackages} ${self.ghc.version} | tr " " "\n" | tail -n +2 | paste -d " " - - | sed 's/.*/-g "&"/' | tr "\n" " ") "\$@" EOF chmod +x $out/bin/ghc-mod ''; |