2010-05-12 15:46:38 +00:00
|
|
|
{ fetchgit, stdenv, mig ? null, autoconf, automake, texinfo
|
2010-05-26 08:55:55 +00:00
|
|
|
, headersOnly ? false }:
|
2010-05-12 15:46:38 +00:00
|
|
|
|
|
|
|
assert (!headersOnly) -> (mig != null);
|
|
|
|
|
2010-05-19 21:28:09 +00:00
|
|
|
let
|
2012-03-07 21:53:37 +00:00
|
|
|
date = "20120303";
|
|
|
|
rev = "2a603e88f86bee88e013c2451eacf076fbcaed81";
|
2010-05-12 15:46:38 +00:00
|
|
|
in
|
2010-05-19 21:28:09 +00:00
|
|
|
stdenv.mkDerivation ({
|
2010-05-19 21:28:28 +00:00
|
|
|
name = "gnumach${if headersOnly then "-headers" else ""}-${date}";
|
2010-05-12 15:46:38 +00:00
|
|
|
|
|
|
|
src = fetchgit {
|
|
|
|
url = "git://git.sv.gnu.org/hurd/gnumach.git";
|
2012-03-07 21:53:37 +00:00
|
|
|
sha256 = "6db17d091d410fb573e15ae5d59d860a17d78b2073f605c1dc1473f6f2c25ccc";
|
2010-05-12 15:46:38 +00:00
|
|
|
inherit rev;
|
|
|
|
};
|
|
|
|
|
2010-05-26 20:39:53 +00: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 15:46:38 +00:00
|
|
|
|
2012-12-28 18:20:09 +00:00
|
|
|
nativeBuildInputs = [ autoconf automake texinfo ]
|
2010-05-12 15:46:38 +00: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 04:19:00 +00:00
|
|
|
license = stdenv.lib.licenses.gpl2Plus;
|
2010-05-12 15:46:38 +00:00
|
|
|
|
|
|
|
homepage = http://www.gnu.org/software/hurd/microkernel/mach/gnumach.html;
|
|
|
|
|
|
|
|
maintainers = [ stdenv.lib.maintainers.ludo ];
|
2010-05-26 08:55:55 +00:00
|
|
|
platforms = [ "i586-gnu" ];
|
2010-05-12 15:46:38 +00:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
//
|
|
|
|
|
|
|
|
(if headersOnly
|
|
|
|
then { buildPhase = ":"; installPhase = "make install-data"; }
|
|
|
|
else {}))
|