2010-05-12 17:46:47 +02:00
|
|
|
{ fetchgit, stdenv, autoconf, automake, libtool, texinfo
|
|
|
|
, machHeaders, mig, headersOnly ? true }:
|
|
|
|
|
2010-05-19 23:28:14 +02:00
|
|
|
assert (cross != null) -> (gccCross != null);
|
|
|
|
|
|
|
|
let
|
|
|
|
date = "2010-05-12";
|
|
|
|
rev = "master@{${date}}";
|
|
|
|
in
|
|
|
|
stdenv.mkDerivation ({
|
2010-05-19 23:28:28 +02:00
|
|
|
name = "hurd${if headersOnly then "-headers" else ""}-${date}";
|
2010-05-12 17:46:47 +02:00
|
|
|
|
|
|
|
src = fetchgit {
|
|
|
|
url = "git://git.sv.gnu.org/hurd/hurd.git";
|
|
|
|
sha256 = "bf4f1376b26b0dcdfd23ff9c9b01440f50d032f48946fad6d3861539978f8f4d";
|
|
|
|
inherit rev;
|
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ autoconf automake libtool texinfo mig ];
|
|
|
|
propagatedBuildInputs = [ machHeaders ];
|
|
|
|
|
|
|
|
configureFlags = "--build=i586-pc-gnu";
|
|
|
|
|
|
|
|
preConfigure = "autoreconf -vfi";
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "The GNU Hurd, GNU project's replacement for the Unix kernel";
|
|
|
|
|
|
|
|
longDescription =
|
|
|
|
'' The GNU Hurd is the GNU project's replacement for the Unix kernel.
|
|
|
|
It is a collection of servers that run on the Mach microkernel to
|
|
|
|
implement file systems, network protocols, file access control, and
|
|
|
|
other features that are implemented by the Unix kernel or similar
|
|
|
|
kernels (such as Linux).
|
|
|
|
'';
|
|
|
|
|
|
|
|
license = "GPLv2+";
|
|
|
|
|
|
|
|
homepage = http://www.gnu.org/software/hurd/;
|
|
|
|
|
|
|
|
maintainers = [ stdenv.lib.maintainers.ludo ];
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
//
|
|
|
|
|
|
|
|
(if headersOnly
|
|
|
|
then { buildPhase = ":"; installPhase = "make install-headers"; }
|
|
|
|
else {}))
|