2010-05-12 16:46:38 +01:00
|
|
|
{ fetchgit, stdenv, mig ? null, autoconf, automake, texinfo
|
2010-05-26 09:55:55 +01:00
|
|
|
, headersOnly ? false }:
|
2010-05-12 16:46:38 +01:00
|
|
|
|
|
|
|
assert (!headersOnly) -> (mig != null);
|
|
|
|
|
2010-05-19 22:28:09 +01:00
|
|
|
let
|
2012-03-07 21:53:37 +00:00
|
|
|
date = "20120303";
|
|
|
|
rev = "2a603e88f86bee88e013c2451eacf076fbcaed81";
|
2010-05-12 16:46:38 +01:00
|
|
|
in
|
2010-05-19 22:28:09 +01:00
|
|
|
stdenv.mkDerivation ({
|
2010-05-19 22:28:28 +01:00
|
|
|
name = "gnumach${if headersOnly then "-headers" else ""}-${date}";
|
2010-05-12 16:46:38 +01:00
|
|
|
|
|
|
|
src = fetchgit {
|
|
|
|
url = "git://git.sv.gnu.org/hurd/gnumach.git";
|
2016-06-02 12:26:44 +01:00
|
|
|
sha256 = "1q8zk8xzbiwpnvvmfgkylj4gwkvkn5n2ydy9j054qv5plnaczj1c";
|
2010-05-12 16:46:38 +01:00
|
|
|
inherit rev;
|
|
|
|
};
|
|
|
|
|
2010-05-26 21:39:53 +01:00
|
|
|
configureFlags =
|
|
|
|
stdenv.lib.optional headersOnly "--build=i586-pc-gnu" # cheat
|
|
|
|
|
|
|
|
# Always enable dependency tracking. See
|
|
|
|
# <http://lists.gnu.org/archive/html/bug-hurd/2010-05/msg00137.html>.
|
|
|
|
++ [ "--enable-dependency-tracking" ];
|
2010-05-12 16:46:38 +01:00
|
|
|
|
2012-12-28 18:20:09 +00:00
|
|
|
nativeBuildInputs = [ autoconf automake texinfo ]
|
2010-05-12 16:46:38 +01:00
|
|
|
++ 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.
|
|
|
|
'';
|
|
|
|
|
2014-06-19 05:19:00 +01:00
|
|
|
license = stdenv.lib.licenses.gpl2Plus;
|
2010-05-12 16:46:38 +01:00
|
|
|
|
|
|
|
homepage = http://www.gnu.org/software/hurd/microkernel/mach/gnumach.html;
|
|
|
|
|
|
|
|
maintainers = [ stdenv.lib.maintainers.ludo ];
|
2010-05-26 09:55:55 +01:00
|
|
|
platforms = [ "i586-gnu" ];
|
2010-05-12 16:46:38 +01:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
//
|
|
|
|
|
|
|
|
(if headersOnly
|
2016-05-04 11:08:35 +01:00
|
|
|
then { dontBuild = true; installPhase = "make install-data"; }
|
2010-05-12 16:46:38 +01:00
|
|
|
else {}))
|