Skip to content

Commit 482dddb

Browse files
committed
Fix ShellCheck SC2215 in wrapped-cabal script
Move the iog-libs.nix sync comment from inside the shell heredoc (where it breaks line continuation and triggers SC2215) to a Nix comment above the writeShellApplicationWithRuntime block.
1 parent 35d8a31 commit 482dddb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

static.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ let iog = import ./iog-libs.nix { inherit pkgs; static = true; };
3434
'';
3535
};
3636
# A cabal-install wrapper that sets the appropriate static flags.
37+
# The -L flags below must cover all IOG crypto/data libs from iog-libs.nix.
3738
# See writers.nix for why writeShellApplicationWithRuntime is needed.
3839
wrapped-cabal = writers.writeShellApplicationWithRuntime {
3940
name = "cabal";
@@ -49,7 +50,6 @@ let iog = import ./iog-libs.nix { inherit pkgs; static = true; };
4950
$NIX_CABAL_FLAGS \
5051
--disable-shared --enable-static \
5152
--ghc-option=-L${lib.getLib static-gmp}/lib \
52-
# IOG crypto/data libs — keep in sync with iog-libs.nix
5353
--ghc-option=-L${lib.getLib static-libsodium-vrf}/lib \
5454
--ghc-option=-L${lib.getLib static-secp256k1}/lib \
5555
--ghc-option=-L${lib.getLib static-libblst}/lib \

0 commit comments

Comments
 (0)