Author: ludo
Date: Sat Jun 11 15:04:42 2011
New Revision: 27420
URL: https://svn.nixos.org/websvn/nix/?rev=27420&sc=1

Log:
Add GNU Mach.

Added:
   hydra-config/gnu/trunk/gnumach/
   hydra-config/gnu/trunk/gnumach/release.nix

Added: hydra-config/gnu/trunk/gnumach/release.nix
==============================================================================
--- /dev/null   00:00:00 1970   (empty, because file is newly added)
+++ hydra-config/gnu/trunk/gnumach/release.nix  Sat Jun 11 15:04:42 2011        
(r27420)
@@ -0,0 +1,80 @@
+/* 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 ? ../../nixpkgs
+, machSrc ? { outPath = /data/src/hurd/gnumach; rev = 123; } }:
+
+let
+  meta = {
+    homepage = http://www.gnu.org/software/hurd/;
+    description = "GNU Mach, the microkernel used by the GNU Hurd";
+
+    longDescription =
+      '' GNU Mach is the microkernel that the GNU Hurd system is based on.
+
+         It is maintained by the Hurd developers for the GNU project and
+         remains compatible with Mach 3.0.
+
+         The majority of GNU Mach's device drivers are from Linux 2.0.  They
+         were added using glue code, i.e., a Linux emulation layer in Mach.
+      '';
+
+    license = "GPLv2+";
+
+    # Those who will receive email notifications.
+    maintainers = [ "Ludovic Courtès <[email protected]>" ];
+  };
+
+  pkgs = import nixpkgs {};
+  crossSystems = (import ../cross-systems.nix) { inherit pkgs; };
+
+  inherit (pkgs) releaseTools;
+
+  succeedOnFailure = true;
+  keepBuildDirectory = true;
+
+  jobs = rec {
+    tarball =
+      releaseTools.sourceTarball {
+        name = "gnumach";
+        src = machSrc;
+        buildInputs = [ pkgs.texinfo ];
+        configureFlags = [ "--build=i586-pc-gnu" ]; # cheat
+        inherit meta succeedOnFailure keepBuildDirectory;
+      };
+
+    build =
+      { tarball ? jobs.tarball }:
+
+      let pkgs = import nixpkgs {
+            crossSystem = crossSystems.i586_pc_gnu;
+          };
+      in
+        (pkgs.releaseTools.nixBuild {
+          name = "gnumach";
+          src = tarball;
+
+          configureFlags =
+            # Always enable dependency tracking.  See
+            # 
<http://lists.gnu.org/archive/html/bug-hurd/2010-05/msg00137.html>.
+            [ "--enable-dependency-tracking" ];
+
+          buildNativeInputs = [ pkgs.mig ];
+          inherit meta succeedOnFailure keepBuildDirectory;
+        }).hostDrv;
+  };
+in
+  jobs
_______________________________________________
nix-commits mailing list
[email protected]
http://mail.cs.uu.nl/mailman/listinfo/nix-commits

Reply via email to