mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-18 02:05:51 +03:00
18 lines
399 B
Nix
18 lines
399 B
Nix
|
{ openblasCompat
|
||
|
, writeTextFile
|
||
|
, name
|
||
|
}:
|
||
|
|
||
|
writeTextFile {
|
||
|
name = "openblas-${name}-pc-${openblasCompat.version}";
|
||
|
destination = "/lib/pkgconfig/${name}.pc";
|
||
|
text = ''
|
||
|
Name: ${name}
|
||
|
Version: ${openblasCompat.version}
|
||
|
|
||
|
Description: ${name} for SageMath, provided by the OpenBLAS package.
|
||
|
Cflags: -I${openblasCompat}/include
|
||
|
Libs: -L${openblasCompat}/lib -lopenblas
|
||
|
'';
|
||
|
}
|