Ensure blas produces pkg config files (#67629)

blas: produce pkgconfig file
This commit is contained in:
idontgetoutmuch 2019-09-03 15:34:45 +01:00 committed by markuskowa
parent fdd331cceb
commit 739cdb368e

View File

@ -44,6 +44,15 @@ stdenv.mkDerivation rec {
install ${dashD} -m755 libblas.so.${version} "$out/lib/libblas.so.${version}"
ln -s libblas.so.${version} "$out/lib/libblas.so.3"
ln -s libblas.so.${version} "$out/lib/libblas.so"
# Write pkgconfig alias.
# See also openblas/default.nix
mkdir $out/lib/pkgconfig
cat <<EOF > $out/lib/pkgconfig/blas.pc
Name: blas
Version: ${version}
Description: blas provided by the BLAS package.
Libs: -L$out/lib -lblas
EOF
'';
preFixup = stdenv.lib.optionalString stdenv.isDarwin ''