summary refs log tree commit diff
path: root/pkgs/applications/science/math/sage/openblas-pc.nix
diff options
context:
space:
mode:
authorTimo Kaufmann <timokau@zoho.com>2018-09-07 21:55:41 +0200
committerTimo Kaufmann <timokau@zoho.com>2018-09-07 21:55:41 +0200
commitdb784d883c4fbc276a1c639c8ff675a5fe805cac (patch)
treee83eecfdd5f2a270729659734ba5203c4db9933e /pkgs/applications/science/math/sage/openblas-pc.nix
parentb11cfc26224f9fc6ab4bdd83b90e766fe3deb1b9 (diff)
downloadnixlib-db784d883c4fbc276a1c639c8ff675a5fe805cac.tar
nixlib-db784d883c4fbc276a1c639c8ff675a5fe805cac.tar.gz
nixlib-db784d883c4fbc276a1c639c8ff675a5fe805cac.tar.bz2
nixlib-db784d883c4fbc276a1c639c8ff675a5fe805cac.tar.lz
nixlib-db784d883c4fbc276a1c639c8ff675a5fe805cac.tar.xz
nixlib-db784d883c4fbc276a1c639c8ff675a5fe805cac.tar.zst
nixlib-db784d883c4fbc276a1c639c8ff675a5fe805cac.zip
sage: re-add pkg-config aliases
Those were removed because they were added to openblas itself. There was
an error with that however and it will take some time until the fix
makes its way through staging. For the time being, reverting this part
of 26d5d030fe498b64a307af35ff96ff215ccd967a will fix the sage build.
This commit should be reverted once
408eacbc896ecc6d0e25238963ecbd412d78ce3c is in master.
Diffstat (limited to 'pkgs/applications/science/math/sage/openblas-pc.nix')
-rw-r--r--pkgs/applications/science/math/sage/openblas-pc.nix17
1 files changed, 17 insertions, 0 deletions
diff --git a/pkgs/applications/science/math/sage/openblas-pc.nix b/pkgs/applications/science/math/sage/openblas-pc.nix
new file mode 100644
index 000000000000..f4669a6557e9
--- /dev/null
+++ b/pkgs/applications/science/math/sage/openblas-pc.nix
@@ -0,0 +1,17 @@
+{ 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
+  '';
+}