@@ -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+}