nmon: fix cross-compiling
This commit is contained in:
parent
ab8489cc40
commit
85a18cf3fe
1 changed files with 7 additions and 1 deletions
|
@ -11,7 +11,13 @@ stdenv.mkDerivation rec {
|
|||
|
||||
buildInputs = [ ncurses ];
|
||||
dontUnpack = true;
|
||||
buildPhase = "cc -o nmon ${src} -g -O2 -D JFS -D GETUSER -Wall -D LARGEMEM -lncurses -lm -g -D X86";
|
||||
buildPhase = "${stdenv.cc.targetPrefix}cc -o nmon ${src} -g -O2 -D JFS -D GETUSER -Wall -D LARGEMEM -lncurses -lm -g -D ${
|
||||
with stdenv.targetPlatform;
|
||||
if isx86_32 || isx86_64 then "X86"
|
||||
else if isAarch32 || isAarch64 then "ARM"
|
||||
else if isPower then "POWER"
|
||||
else "UNKNOWN"
|
||||
}";
|
||||
installPhase = ''
|
||||
mkdir -p $out/bin
|
||||
cp nmon $out/bin
|
||||
|
|
Loading…
Reference in a new issue