-
-
Notifications
You must be signed in to change notification settings - Fork 159
Open
Description
Hi,
if cabal contains line:
extra-libraries: HSrts-ghc9.4.7
cabal2nix generates following nix:
error: syntax error, unexpected FLOAT_LIT, expecting '}'
at /nix/store/3hxh6fwnqhbkgghf77gr3l5ibss5rrki-cabal2nix-foo/default.nix:1:45:
1| { mkDerivation, base, containers, HSrts-ghc9.4.7, lib, mtl
| ^
Is it possible to replace dots with underbar or exclude form pattern matching problematic name?
cabal build resolves rts dependency somehow even when nix-shell is called with commented extra-libraries line and uncommented before cabal run.
Current workaround:
cabal:
extra-source-files: configure
extra-tmp-files: eval.buildinfo
build-type: Configure
configure:
#!/bin/sh
while [ $# -ne 0 ]; do
case $1 in
--with-compiler=*)
v=`${1#--with-compiler=} --numeric-version`
cat > eval.buildinfo <<EOF
extra-libraries: HSrts-ghc$v
EOF
break
;;
*)
shift
esac
done
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels