Skip to content

Commit

Permalink
Fix big cabal pkg-config performance issue
Browse files Browse the repository at this point in the history
  • Loading branch information
hamishmack committed Apr 2, 2024
1 parent 3f8c7a1 commit 0ca5733
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions overlays/cabal-pkg-config.nix
Original file line number Diff line number Diff line change
Expand Up @@ -56,17 +56,15 @@ final: prev:
${final.pkgs.lib.concatStrings (map (name: ''
${name}
'') (__attrNames pkgconfigPkgs))
}
EOF2
}EOF2
elif [[ "\$1" == "--modversion" ]]; then
OUTPUT=\$(mktemp)
ERROR=\$(mktemp)
cat <<EOF2
${final.pkgs.lib.concatStrings (map (p: ''
${getVersion (builtins.head p)}
'') (__attrValues pkgconfigPkgs))
}
EOF2
}EOF2
else
$out/bin/${targetPrefix}${baseBinName}-wrapped "\$@"
fi
Expand Down

0 comments on commit 0ca5733

Please sign in to comment.