2012-03-15 21:28:03 +01:00
|
|
|
{ fetchgit, stdenv, autoconf, automake, flex, bison, machHeaders, bash }:
|
2010-05-12 17:46:43 +02:00
|
|
|
|
2010-05-19 23:27:38 +02:00
|
|
|
let
|
2010-06-15 17:01:15 +02:00
|
|
|
date = "20100512";
|
|
|
|
rev = "4fee6a5652f609cb68cdbd9049d4da7a194f15f8";
|
2010-05-19 23:27:38 +02:00
|
|
|
in
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "mig-${date}";
|
2010-05-12 17:46:43 +02:00
|
|
|
|
|
|
|
src = fetchgit {
|
|
|
|
url = "git://git.sv.gnu.org/hurd/mig.git";
|
|
|
|
sha256 = "d6958d9b60925d4600aac133c9505bc873a16b203c69260bd0fb228922ee9273";
|
|
|
|
inherit rev;
|
|
|
|
};
|
|
|
|
|
2011-06-18 18:36:17 +02:00
|
|
|
patches = [ ./noyywrap.patch ];
|
|
|
|
|
2012-12-28 19:20:09 +01:00
|
|
|
nativeBuildInputs = [ autoconf automake flex bison machHeaders ];
|
2010-05-12 17:46:43 +02:00
|
|
|
|
|
|
|
preConfigure = "autoreconf -vfi";
|
|
|
|
|
2010-05-19 23:27:38 +02:00
|
|
|
doCheck = true;
|
2010-05-12 17:46:43 +02:00
|
|
|
|
2012-03-15 21:28:03 +01:00
|
|
|
crossAttrs = {
|
|
|
|
postInstall =
|
|
|
|
# Fix the shebang to point to the cross-built shell.
|
|
|
|
'' sed -i "$out/bin/mig" \
|
2012-12-28 19:08:19 +01:00
|
|
|
-e 's|^#!/.*|#!${bash.crossDrv}/bin/sh|g'
|
2012-03-15 21:28:03 +01:00
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
2010-05-12 17:46:43 +02:00
|
|
|
meta = {
|
|
|
|
description = "GNU MIG, the Mach interface generator";
|
|
|
|
|
|
|
|
longDescription =
|
|
|
|
'' GNU MIG is the GNU distribution of the Mach 3.0 interface generator
|
|
|
|
MIG, as maintained by the GNU Hurd developers for the GNU project.
|
|
|
|
|
|
|
|
You need this tool to compile the GNU Mach and GNU Hurd
|
|
|
|
distributions, and to compile the GNU C library for the Hurd. Also,
|
|
|
|
you will need it for other software in the GNU system that uses
|
|
|
|
Mach-based inter-process communication.
|
|
|
|
'';
|
|
|
|
|
|
|
|
license = "GPLv2+";
|
|
|
|
|
|
|
|
homepage = http://www.gnu.org/software/hurd/microkernel/mach/mig/gnu_mig.html;
|
|
|
|
|
|
|
|
# platforms = stdenv.lib.platforms.gnu; # really GNU/Hurd
|
|
|
|
maintainers = [ stdenv.lib.maintainers.ludo ];
|
|
|
|
};
|
|
|
|
}
|