GNU MIG: When cross-compiling, patch shebang correctly.
svn path=/nixpkgs/trunk/; revision=33123
This commit is contained in:
parent
9e2e08ba47
commit
2e0ae13f68
@ -1,4 +1,4 @@
|
|||||||
{ fetchgit, stdenv, autoconf, automake, flex, bison, machHeaders }:
|
{ fetchgit, stdenv, autoconf, automake, flex, bison, machHeaders, bash }:
|
||||||
|
|
||||||
let
|
let
|
||||||
date = "20100512";
|
date = "20100512";
|
||||||
@ -21,6 +21,14 @@ stdenv.mkDerivation {
|
|||||||
|
|
||||||
doCheck = true;
|
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 = {
|
meta = {
|
||||||
description = "GNU MIG, the Mach interface generator";
|
description = "GNU MIG, the Mach interface generator";
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user