mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-15 06:14:57 +01:00
643169bbb4
Previously, the "ar command" in the global config of GHC in nixpkgs is simply "ar" instead of a proper absolute path in the nix store. This will result in an "ar: command not found" error when using GHC and cabal in a pure nix shell. This commit adds the patch and applies to all pre-9.0 versions. See output of ghc --info for "ar command" value.
25 lines
632 B
Diff
25 lines
632 B
Diff
diff -urd a/aclocal.m4 b/aclocal.m4
|
|
--- a/aclocal.m4
|
|
+++ b/aclocal.m4
|
|
@@ -1199,7 +1199,8 @@
|
|
# thinks that target == host so it never checks the unqualified
|
|
# tools for Windows. See #14274.
|
|
AC_DEFUN([FP_PROG_AR],
|
|
-[if test -z "$fp_prog_ar"; then
|
|
+[AC_SUBST(fp_prog_ar,$AR)
|
|
+if test -z "$fp_prog_ar"; then
|
|
if test "$HostOS" = "mingw32"
|
|
then
|
|
AC_PATH_PROG([fp_prog_ar], [ar])
|
|
diff -urd a/configure b/configure
|
|
--- a/configure
|
|
+++ b/configure
|
|
@@ -10744,6 +10744,8 @@
|
|
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
|
|
|
|
|
|
+fp_prog_ar=$AR
|
|
+
|
|
if test -z "$fp_prog_ar"; then
|
|
if test "$HostOS" = "mingw32"
|
|
then
|