git.iko.soy/typeable/nixpkgs
on master help sign in
openlibm: init at 0.4.1
commit3436c78fc38719ab2d2b5641760188afdcf22381 authorThomas Tuegel <ttuegel@gmail.com> dateFri 9 Oct 2015, 19:02 (11 years ago) parent34499fc
3 files changed+37
pkgs/development/libraries/science/math/openlibm/default.nix+22 pkgs/development/libraries/science/math/openlibm/openlibm-prefix.patch+13 pkgs/top-level/all-packages.nix+2
pkgs/development/libraries/science/math/openlibm/default.nixnew file+22
@@ -0,0 +1,22 @@
1+{ stdenv, fetchurl }:
2+
3+stdenv.mkDerivation {
4+ name = "openlibm-0.4.1";
5+ src = fetchurl {
6+ url = "https://github.com/JuliaLang/openlibm/archive/v0.4.1.tar.gz";
7+ sha256 = "0cwqqqlblj3kzp9aq1wnpfs1fl0qd1wp1xzm5shb09w06i4rh9nn";
8+ };
9+
10+ patches = [ ./openlibm-prefix.patch ];
11+ postPatch = ''
12+ substituteAllInPlace Make.inc
13+ '';
14+
15+ meta = {
16+ description = "High quality system independent, portable, open source libm implementation";
17+ homepage = "http://www.openlibm.org/";
18+ license = stdenv.lib.licenses.mit;
19+ maintainers = [ stdenv.lib.maintainers.ttuegel ];
20+ platforms = stdenv.lib.platforms.all;
21+ };
22+}
pkgs/development/libraries/science/math/openlibm/openlibm-prefix.patchnew file+13
@@ -0,0 +1,13 @@
1+diff --git a/Make.inc b/Make.inc
2+index 83d9612..e951c56 100644
3+--- a/Make.inc
4++++ b/Make.inc
5+@@ -7,7 +7,7 @@ VERSION = 0.4
6+ SOMAJOR = 1
7+ SOMINOR = 0
8+ DESTDIR =
9+-prefix = /usr/local
10++prefix = @out@
11+ bindir = $(prefix)/bin
12+ libdir = $(prefix)/lib
13+ includedir = $(prefix)/include
pkgs/top-level/all-packages.nix+2
@@ -14266,6 +14266,8 @@ let
1426614266 # standard BLAS and LAPACK.
1426714267 openblasCompat = openblas.override { blas64 = false; };
1426814268
14269+ openlibm = callPackage ../development/libraries/science/math/openlibm {};
14270+
1426914271 mathematica = callPackage ../applications/science/math/mathematica { };
1427014272 mathematica9 = callPackage ../applications/science/math/mathematica/9.nix { };
1427114273