We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 204296f commit a39ad04Copy full SHA for a39ad04
overlays/cabal-pkg-config.nix
@@ -23,13 +23,13 @@ final: prev:
23
if [[ "\$1" == "--libs" && "\$2" == "--static" ]]; then
24
OUTPUT=\$(mktemp)
25
ERROR=\$(mktemp)
26
- if ${final.pkgconfig}/bin/pkg-config "\$@" >output 2>\$ERROR; then
+ if $out/bin/${attrs.targetPrefix}${attrs.baseBinName}-wrapped "\$@" >output 2>\$ERROR; then
27
cat \$OUTPUT
28
else
29
echo "--error-pkg-config-static-failed=\$ERROR"
30
fi
31
32
- ${final.pkgconfig}/bin/pkg-config "\$@"
+ $out/bin/${attrs.targetPrefix}${attrs.baseBinName}-wrapped "\$@"
33
34
EOF
35
chmod +x $out/bin/${attrs.targetPrefix}${attrs.baseBinName}
0 commit comments