···18let
19 # the GLES backend on rpi is untested as I don't have the hardware
20 backend =
21- if (stdenv.isx86_32 || stdenv.isx86_64) then "OpenGL" else "GLES";
2223 withVLC = stdenv.isDarwin;
24
···18let
19 # the GLES backend on rpi is untested as I don't have the hardware
20 backend =
21+ if stdenv.hostPlatform.isx86 then "OpenGL" else "GLES";
2223 withVLC = stdenv.isDarwin;
24
+1-1
pkgs/os-specific/linux/nmon/default.nix
···13 dontUnpack = true;
14 buildPhase = "${stdenv.cc.targetPrefix}cc -o nmon ${src} -g -O2 -D JFS -D GETUSER -Wall -D LARGEMEM -lncurses -lm -g -D ${
15 with stdenv.targetPlatform;
16- if isx86_32 || isx86_64 then "X86"
17 else if isAarch then "ARM"
18 else if isPower then "POWER"
19 else "UNKNOWN"
···13 dontUnpack = true;
14 buildPhase = "${stdenv.cc.targetPrefix}cc -o nmon ${src} -g -O2 -D JFS -D GETUSER -Wall -D LARGEMEM -lncurses -lm -g -D ${
15 with stdenv.targetPlatform;
16+ if isx86 then "X86"
17 else if isAarch then "ARM"
18 else if isPower then "POWER"
19 else "UNKNOWN"