Merge pull request #142242 from ju1m/nmon

conduit-nginx
Sandro 2021-10-20 13:22:04 +02:00 committed by GitHub
commit 8018eea2df
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 1 deletions

View File

@ -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