[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/haskell-tng-mode 06e4e76 245/385: support running scripts
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/haskell-tng-mode 06e4e76 245/385: support running scripts on nix |
Date: |
Tue, 5 Oct 2021 23:59:40 -0400 (EDT) |
branch: elpa/haskell-tng-mode
commit 06e4e76d73e4734284c1ce8e16f32159f26d9000
Author: Tseen She <ts33n.sh3@gmail.com>
Commit: Tseen She <ts33n.sh3@gmail.com>
support running scripts on nix
---
cabal-ghcflags.sh | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/cabal-ghcflags.sh b/cabal-ghcflags.sh
index fed1132..9ae9cfd 100755
--- a/cabal-ghcflags.sh
+++ b/cabal-ghcflags.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
# Dump the ghc flags that cabal-install uses to launch a repl session for
# all components into files named `.ghc.flags.component'.
@@ -32,7 +32,7 @@ GHC=$(cabal v2-exec -v2 ghc -- --numeric-version | tail -2 |
head -1 | sed 's/ .
# ghc is called multiple times during the v2-repl startup.
# The only call that we're interested in is this one.
cat <<EOF > "$TMP/ghc"
-#!/bin/bash
+#!/usr/bin/env bash
if [ "\$1" == "--interactive" ]; then
echo -n "\${@:2}" >> "\$OUTPUT"
else
@@ -43,14 +43,14 @@ chmod 755 "$TMP/ghc"
GHC_PKG=$(echo "$GHC" | rev | sed 's/chg/gkp-chg/' | rev)
cat <<EOF > "$TMP/ghc-pkg"
-#!/bin/bash
+#!/usr/bin/env bash
exec "$GHC_PKG" "\$@"
EOF
chmod 755 "$TMP/ghc-pkg"
HSC2HS=$(echo "$GHC" | rev | sed 's/chg/sh2csh/' | rev)
cat <<EOF > "$TMP/hsc2hs"
-#!/bin/bash
+#!/usr/bin/env bash
exec "$HSC2HS" "\$@"
EOF
chmod 755 "$TMP/hsc2hs"
- [nongnu] elpa/haskell-tng-mode 494aef4 302/385: cache the results of hsinspect imports, (continued)
- [nongnu] elpa/haskell-tng-mode 494aef4 302/385: cache the results of hsinspect imports, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode 598b372 288/385: typo, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode e0fd8f4 303/385: abstract the hsinspect caching logic, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode 4dc6f76 313/385: fix hsinspect discoverability, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode eb4591f 287/385: document popup dependency, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode 48729c8 308/385: more cache cleanups, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode 6299e6d 317/385: amazeballs idea, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode aa9cdbb 226/385: hacky file-specific language extensions, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode a4f06f5 237/385: an idea, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode 0113f37 273/385: hsinspect should work on symbols with FQNs, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode 06e4e76 245/385: support running scripts on nix,
ELPA Syncer <=
- [nongnu] elpa/haskell-tng-mode 3179294 267/385: rename ormolu command, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode 388df13 282/385: refactor calls to hsinspect to allow for more callers, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode 067e8a7 280/385: bugfix fontification of erroneous matches inside strings, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode 224e955 307/385: add screencasts to the README, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode b59ce04 356/385: improve testing, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode ee1fb28 345/385: small cleanup, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode 1310276 346/385: planning, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode 09018bc 352/385: support hsinspect beta releases, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode e73bc19 335/385: jump-to-definition, ELPA Syncer, 2021/10/06
- [nongnu] elpa/haskell-tng-mode 2f2c500 354/385: defining a test spec, ELPA Syncer, 2021/10/06