GNU MIG: When cross-compiling, patch shebang correctly.

svn path=/nixpkgs/trunk/; revision=33123
This commit is contained in:
Ludovic Courtès 2012-03-15 20:28:03 +00:00
parent 9e2e08ba47
commit 2e0ae13f68
1 changed files with 9 additions and 1 deletions

View File

@ -1,4 +1,4 @@
{ fetchgit, stdenv, autoconf, automake, flex, bison, machHeaders }:
{ fetchgit, stdenv, autoconf, automake, flex, bison, machHeaders, bash }:
let
date = "20100512";
@ -21,6 +21,14 @@ stdenv.mkDerivation {
doCheck = true;
crossAttrs = {
postInstall =
# Fix the shebang to point to the cross-built shell.
'' sed -i "$out/bin/mig" \
-e 's|^#!/.*|#!${bash.hostDrv}/bin/sh|g'
'';
};
meta = {
description = "GNU MIG, the Mach interface generator";