mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-19 04:02:10 +00:00
openlibm: init at 0.4.1
This commit is contained in:
parent
34499fc65f
commit
3436c78fc3
22
pkgs/development/libraries/science/math/openlibm/default.nix
Normal file
22
pkgs/development/libraries/science/math/openlibm/default.nix
Normal file
|
@ -0,0 +1,22 @@
|
|||
{ stdenv, fetchurl }:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
name = "openlibm-0.4.1";
|
||||
src = fetchurl {
|
||||
url = "https://github.com/JuliaLang/openlibm/archive/v0.4.1.tar.gz";
|
||||
sha256 = "0cwqqqlblj3kzp9aq1wnpfs1fl0qd1wp1xzm5shb09w06i4rh9nn";
|
||||
};
|
||||
|
||||
patches = [ ./openlibm-prefix.patch ];
|
||||
postPatch = ''
|
||||
substituteAllInPlace Make.inc
|
||||
'';
|
||||
|
||||
meta = {
|
||||
description = "High quality system independent, portable, open source libm implementation";
|
||||
homepage = "http://www.openlibm.org/";
|
||||
license = stdenv.lib.licenses.mit;
|
||||
maintainers = [ stdenv.lib.maintainers.ttuegel ];
|
||||
platforms = stdenv.lib.platforms.all;
|
||||
};
|
||||
}
|
|
@ -0,0 +1,13 @@
|
|||
diff --git a/Make.inc b/Make.inc
|
||||
index 83d9612..e951c56 100644
|
||||
--- a/Make.inc
|
||||
+++ b/Make.inc
|
||||
@@ -7,7 +7,7 @@ VERSION = 0.4
|
||||
SOMAJOR = 1
|
||||
SOMINOR = 0
|
||||
DESTDIR =
|
||||
-prefix = /usr/local
|
||||
+prefix = @out@
|
||||
bindir = $(prefix)/bin
|
||||
libdir = $(prefix)/lib
|
||||
includedir = $(prefix)/include
|
|
@ -14266,6 +14266,8 @@ let
|
|||
# standard BLAS and LAPACK.
|
||||
openblasCompat = openblas.override { blas64 = false; };
|
||||
|
||||
openlibm = callPackage ../development/libraries/science/math/openlibm {};
|
||||
|
||||
mathematica = callPackage ../applications/science/math/mathematica { };
|
||||
mathematica9 = callPackage ../applications/science/math/mathematica/9.nix { };
|
||||
|
||||
|
|
Loading…
Reference in a new issue