Author: ludo
Date: Mon Mar 21 20:13:28 2011
New Revision: 26451
URL: https://svn.nixos.org/websvn/nix/?rev=26451&sc=1
Log:
Add MPFR.
Added:
hydra-config/gnu/trunk/mpfr/
hydra-config/gnu/trunk/mpfr/ck-version-info.patch
hydra-config/gnu/trunk/mpfr/release.nix
Added: hydra-config/gnu/trunk/mpfr/ck-version-info.patch
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ hydra-config/gnu/trunk/mpfr/ck-version-info.patch Mon Mar 21 20:13:28
2011 (r26451)
@@ -0,0 +1,12 @@
+Remove absolute path to `perl'.
+
+--- a/tools/ck-version-info (revision 7595)
++++ b/tools/ck-version-info (working copy)
+@@ -1,4 +1,6 @@
+-#!/usr/bin/env perl
++eval '(exit $?0)' && eval 'exec perl -wS "$0" ${1+"$@"}'
++ & eval 'exec perl -wS "$0" $argv:q'
++ if 0;
+
+ # Note: this script must not be used to build MPFR due to the
+ # dependency on perl, but this is OK for "make dist".
Added: hydra-config/gnu/trunk/mpfr/release.nix
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ hydra-config/gnu/trunk/mpfr/release.nix Mon Mar 21 20:13:28 2011
(r26451)
@@ -0,0 +1,65 @@
+/* Continuous integration of GNU with Hydra/Nix.
+ Copyright (C) 2011 Ludovic Courtès <[email protected]>
+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see <http://www.gnu.org/licenses/>. */
+
+{ nixpkgs ? { outPath = ../../nixpkgs; }
+, mpfrSrc ? { outPath = ../../mpfr; }
+, gmp ? (import nixpkgs {}).gmp # native GMP build
+, gmp_xgnu ? null # cross-GNU GMP build
+}:
+
+let
+ meta = {
+ description = "GNU MPFR";
+
+ longDescription =
+ '' The MPFR library is a C library for multiple-precision
+ floating-point computations with correct rounding. MPFR has
+ continuously been supported by the INRIA and the current main
+ authors come from the Caramel and Arénaire project-teams at Loria
+ (Nancy, France) and LIP (Lyon, France) respectively; see more on the
+ credit page. MPFR is based on the GMP multiple-precision library.
+ '';
+
+ homepage = http://www.mpfr.org/;
+
+ license = "LGPLv3+";
+
+ maintainers =
+ [ (import nixpkgs {}).stdenv.lib.maintainers.ludo
+ ];
+ };
+in
+ import ../gnu-jobs.nix {
+ name = "mpfr";
+ src = mpfrSrc;
+ inherit nixpkgs meta;
+ useLatestGnulib = false;
+ enableGnuCrossBuild = true;
+
+ customEnv = {
+
+ tarball = pkgs: {
+ buildInputs = [ gmp ]
+ ++ (with pkgs; [ xz zip texinfo automake111x perl ]);
+ autoconfPhase = "autoreconf -vfi";
+ patches = [ ./ck-version-info.patch ];
+ };
+
+ build = pkgs: { buildInputs = [ gmp ]; };
+ coverage = pkgs: { buildInputs = [ gmp ]; };
+ xbuild_gnu = pkgs: { buildInputs = [ gmp_xgnu ]; };
+ };
+ }
_______________________________________________
nix-commits mailing list
[email protected]
http://mail.cs.uu.nl/mailman/listinfo/nix-commits