about summary refs log tree commit diff
path: root/pkgs/os-specific/gnu
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2010-05-12 15:46:38 +0000
committerLudovic Courtès <ludo@gnu.org>2010-05-12 15:46:38 +0000
commit5738f20c8358675d62446863858591116de2c193 (patch)
tree83ff92515eec9c562b94b5e00ba1c6aac7efc9a9 /pkgs/os-specific/gnu
parentcde9d0fb134a8135ec91cbfbf722102188ff734e (diff)
downloadnixlib-5738f20c8358675d62446863858591116de2c193.tar
nixlib-5738f20c8358675d62446863858591116de2c193.tar.gz
nixlib-5738f20c8358675d62446863858591116de2c193.tar.bz2
nixlib-5738f20c8358675d62446863858591116de2c193.tar.lz
nixlib-5738f20c8358675d62446863858591116de2c193.tar.xz
nixlib-5738f20c8358675d62446863858591116de2c193.tar.zst
nixlib-5738f20c8358675d62446863858591116de2c193.zip
Add GNU Mach (headers).
svn path=/nixpkgs/trunk/; revision=21749
Diffstat (limited to 'pkgs/os-specific/gnu')
-rw-r--r--pkgs/os-specific/gnu/mach/default.nix49
1 files changed, 49 insertions, 0 deletions
diff --git a/pkgs/os-specific/gnu/mach/default.nix b/pkgs/os-specific/gnu/mach/default.nix
new file mode 100644
index 000000000000..9bb08ef36fba
--- /dev/null
+++ b/pkgs/os-specific/gnu/mach/default.nix
@@ -0,0 +1,49 @@
+{ fetchgit, stdenv, mig ? null, autoconf, automake, texinfo
+, headersOnly ? true }:
+
+assert (!headersOnly) -> (mig != null);
+
+let rev = "7987a711e8f13c0543e87a0211981f4b40ef6d94";
+in
+stdenv.mkDerivation (rec {
+  name = "gnumach-1.4-${rev}";
+
+  src = fetchgit {
+    url = "git://git.sv.gnu.org/hurd/gnumach.git";
+    sha256 = "7b383a23b7fbe1ec812951cc0f553c85da3279f4f723dd6a65e45976f9d5ca2d";
+    inherit rev;
+  };
+
+  configureFlags = "--build=i586-pc-gnu";
+
+  buildInputs = [ autoconf automake texinfo ]
+    ++ stdenv.lib.optional (mig != null) mig;
+
+  preConfigure = "autoreconf -vfi";
+
+  meta = {
+    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+";
+
+    homepage = http://www.gnu.org/software/hurd/microkernel/mach/gnumach.html;
+
+    maintainers = [ stdenv.lib.maintainers.ludo ];
+  };
+}
+
+//
+
+(if headersOnly
+ then { buildPhase = ":"; installPhase = "make install-data"; }
+ else {}))