Skip to content

Commit a39ad04

Browse files
committed
Fix for cross compile
1 parent 204296f commit a39ad04

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

overlays/cabal-pkg-config.nix

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,13 @@ final: prev:
2323
if [[ "\$1" == "--libs" && "\$2" == "--static" ]]; then
2424
OUTPUT=\$(mktemp)
2525
ERROR=\$(mktemp)
26-
if ${final.pkgconfig}/bin/pkg-config "\$@" >output 2>\$ERROR; then
26+
if $out/bin/${attrs.targetPrefix}${attrs.baseBinName}-wrapped "\$@" >output 2>\$ERROR; then
2727
cat \$OUTPUT
2828
else
2929
echo "--error-pkg-config-static-failed=\$ERROR"
3030
fi
3131
else
32-
${final.pkgconfig}/bin/pkg-config "\$@"
32+
$out/bin/${attrs.targetPrefix}${attrs.baseBinName}-wrapped "\$@"
3333
fi
3434
EOF
3535
chmod +x $out/bin/${attrs.targetPrefix}${attrs.baseBinName}

0 commit comments

Comments
 (0)