GNU MIG: When cross-compiling, patch shebang correctly.
svn path=/nixpkgs/trunk/; revision=33123
This commit is contained in:
@@ -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";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user