Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: df715ebb4337
Choose a base ref
...
head repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: c1854d86168c
Choose a head ref
  • 1 commit
  • 12 files changed
  • 1 contributor

Commits on Apr 1, 2020

  1. Verified

    This commit was signed with the committer’s verified signature.
    Doctor-wu Doctor Wu
    Copy the full SHA
    c1854d8 View commit details
5 changes: 2 additions & 3 deletions pkgs/applications/graphics/fluxus/default.nix
Original file line number Diff line number Diff line change
@@ -78,10 +78,9 @@ stdenv.mkDerivation rec {
"RacketLib=${racket}/lib/racket"
"LIBPATH=${stdenv.lib.makeLibraryPath libs}"
"DESTDIR=build"
"Prefix=${placeholder "out"}"
];
configurePhase = ''
sconsFlags+=" Prefix=$out"
'';

installPhase = ''
mkdir -p $out
cp -r build$out/* $out/
18 changes: 11 additions & 7 deletions pkgs/development/libraries/serf/default.nix
Original file line number Diff line number Diff line change
@@ -17,14 +17,18 @@ stdenv.mkDerivation rec {

prefixKey = "PREFIX=";

sconsFlags = [
"OPENSSL=${openssl}"
"ZLIB=${zlib}"
] ++ stdenv.lib.optional (!stdenv.isCygwin)
"GSSAPI=${kerberos.dev}";

preConfigure = ''
sconsFlags+=" APR=$(echo ${apr.dev}/bin/*-config)"
sconsFlags+=" APU=$(echo ${aprutil.dev}/bin/*-config)"
sconsFlags+=" CC=$CC"
sconsFlags+=" OPENSSL=${openssl}"
sconsFlags+=" ZLIB=${zlib}"
'' + stdenv.lib.optionalString (!stdenv.isCygwin) ''
sconsFlags+=" GSSAPI=${kerberos.dev}"
sconsFlags+=(
"APR=$(echo ${apr.dev}/bin/*-config)"
"APU=$(echo ${aprutil.dev}/bin/*-config)"
"CC=$CC"
)
'';

enableParallelBuilding = true;
6 changes: 2 additions & 4 deletions pkgs/development/libraries/swiften/default.nix
Original file line number Diff line number Diff line change
@@ -20,10 +20,8 @@ stdenv.mkDerivation rec {
"boost_libdir=${boost.out}/lib"
"boost_bundled_enable=false"
];
preInstall = ''
installTargets="$out"
installFlags+=" SWIFT_INSTALLDIR=$out"
'';
installFlags = [ "SWIFT_INSTALLDIR=${placeholder "out"}" ];
installTargets = [ "${placeholder "out"}" ];

enableParallelBuilding = true;

10 changes: 5 additions & 5 deletions pkgs/development/tools/build-managers/scons/setup-hook.sh
Original file line number Diff line number Diff line change
@@ -11,8 +11,8 @@ sconsBuildPhase() {

local flagsArray=(
${enableParallelBuilding:+-j${NIX_BUILD_CORES}}
$sconsFlags ${sconsFlagsArray[@]}
$buildFlags ${buildFlagsArray[@]}
${sconsFlags[@]}
${buildFlags[@]} ${buildFlagsArray[@]}
)

echoCmd 'build flags' "${flagsArray[@]}"
@@ -33,8 +33,8 @@ sconsInstallPhase() {
fi

local flagsArray=(
$sconsFlags ${sconsFlagsArray[@]}
$installFlags ${installFlagsArray[@]}
${sconsFlags[@]}
${installFlags[@]} ${installFlagsArray[@]}
${installTargets:-install}
)

@@ -60,7 +60,7 @@ sconsCheckPhase() {
else
local flagsArray=(
${enableParallelChecking:+-j${NIX_BUILD_CORES}}
$sconsFlags ${sconsFlagsArray[@]}
${sconsFlags[@]}
${checkFlagsArray[@]}
)

7 changes: 3 additions & 4 deletions pkgs/development/tools/godot/default.nix
Original file line number Diff line number Diff line change
@@ -33,10 +33,9 @@ in stdenv.mkDerivation rec {

enableParallelBuilding = true;

sconsFlags = "target=release_debug platform=x11";
preConfigure = ''
sconsFlags+=" ${lib.concatStringsSep " " (lib.mapAttrsToList (k: v: "${k}=${builtins.toJSON v}") options)}"
'';
sconsFlags = [
"target=release_debug" "platform=x11"
] ++ (lib.mapAttrsToList (k: v: "${k}=${builtins.toJSON v}") options);

outputs = [ "out" "dev" "man" ];

2 changes: 1 addition & 1 deletion pkgs/development/tools/nsis/default.nix
Original file line number Diff line number Diff line change
@@ -36,7 +36,7 @@ stdenv.mkDerivation rec {
];

preBuild = ''
sconsFlagsArray+=("PATH=$PATH")
sconsFlags+=("PATH=$PATH")
'';

prefixKey = "PREFIX=";
21 changes: 12 additions & 9 deletions pkgs/games/globulation/default.nix
Original file line number Diff line number Diff line change
@@ -19,11 +19,13 @@ stdenv.mkDerivation rec {
sha256 = "1f0l2cqp2g3llhr9jl6jj15k0wb5q8n29vqj99xy4p5hqs78jk8g";
};

patches = [ ./header-order.patch ./public-buildproject.patch
patches = [
./header-order.patch
./public-buildproject.patch
(fetchpatch {
url = https://bitbucket.org/giszmo/glob2/commits/c9dc715624318e4fea4abb24e04f0ebdd9cd8d2a/raw;
sha256 = "0017xg5agj3dy0hx71ijdcrxb72bjqv7x6aq7c9zxzyyw0mkxj0k";
})
url = https://bitbucket.org/giszmo/glob2/commits/c9dc715624318e4fea4abb24e04f0ebdd9cd8d2a/raw;
sha256 = "0017xg5agj3dy0hx71ijdcrxb72bjqv7x6aq7c9zxzyyw0mkxj0k";
})
];

postPatch = ''
@@ -35,11 +37,11 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ sconsPackages.scons_3_0_1 ];
buildInputs = [ libGLU libGL SDL SDL_ttf SDL_image zlib SDL_net speex libvorbis libogg boost fribidi bsdiff ];

postConfigure = ''
sconsFlags+=" BINDIR=$out/bin"
sconsFlags+=" INSTALLDIR=$out/share/globulation2"
sconsFlags+=" DATADIR=$out/share/globulation2/glob2"
'';
sconsFlags = [
"BINDIR=${placeholder "out"}/bin"
"INSTALLDIR=${placeholder "out"}/share/globulation2"
"DATADIR=${placeholder "out"}/share/globulation2/glob2"
];

env.NIX_LDFLAGS = "-lboost_system";

@@ -49,5 +51,6 @@ stdenv.mkDerivation rec {
platforms = platforms.linux;
license = licenses.gpl3;
};

passthru.updateInfo.downloadPage = "http://globulation2.org/wiki/Download_and_Install";
}
2 changes: 1 addition & 1 deletion pkgs/games/the-powder-toy/default.nix
Original file line number Diff line number Diff line change
@@ -15,7 +15,7 @@ stdenv.mkDerivation rec {

buildInputs = [ SDL2 lua fftwFloat zlib bzip2 ];

sconsFlags = "--tool=";
sconsFlags = [ "--tool=" ];

installPhase = ''
install -Dm 755 build/powder* "$out/bin/powder"
7 changes: 6 additions & 1 deletion pkgs/misc/emulators/fceux/default.nix
Original file line number Diff line number Diff line change
@@ -16,7 +16,12 @@ stdenv.mkDerivation {
zlib SDL lua5_1
];

sconsFlags = "OPENGL=false GTK=false CREATE_AVI=false LOGO=false";
sconsFlags = [
"OPENGL=false"
"GTK=false"
"CREATE_AVI=false"
"LOGO=false"
];
prefixKey = "--prefix=";

# sed allows scons to find libraries in nix.
5 changes: 2 additions & 3 deletions pkgs/servers/gpsd/default.nix
Original file line number Diff line number Diff line change
@@ -51,16 +51,15 @@ stdenv.mkDerivation rec {
preBuild = ''
patchShebangs .
sed -e "s|systemd_dir = .*|systemd_dir = '$out/lib/systemd/system'|" -i SConstruct
sconsFlags+=" udevdir=$out/lib/udev"
sconsFlags+=" python_libdir=$out/lib/${python2Packages.python.libPrefix}/site-packages"
'';

sconsFlags = [
"leapfetch=no"
"gpsd_user=${gpsdUser}"
"gpsd_group=${gpsdGroup}"
"systemd=yes"
"udevdir=${placeholder "out"}/lib/udev"
"python_libdir=${placeholder "out"}/lib/${python2Packages.python.libPrefix}/site-packages"
];

preCheck = ''
5 changes: 2 additions & 3 deletions pkgs/servers/nosql/mongodb/mongodb.nix
Original file line number Diff line number Diff line change
@@ -86,10 +86,9 @@ in stdenv.mkDerivation rec {
] ++ map (lib: "--use-system-${lib}") system-libraries;

preBuild = ''
sconsFlags+=" CC=$CC"
sconsFlags+=" CXX=$CXX"
sconsFlags+=("CC=$CC" "CXX=$CXX")
'' + optionalString stdenv.isAarch64 ''
sconsFlags+=" CCFLAGS='-march=armv8-a+crc'"
sconsFlags+=("CCFLAGS='-march=armv8-a+crc'")
'';

preInstall = ''
6 changes: 5 additions & 1 deletion pkgs/servers/sql/mariadb/galera/default.nix
Original file line number Diff line number Diff line change
@@ -34,7 +34,11 @@ in stdenv.mkDerivation {
export LIBPATH="${galeraLibs}/lib"
'';

sconsFlags = "ssl=1 system_asio=1 strict_build_flags=0";
sconsFlags = [
"ssl=1"
"system_asio=1"
"strict_build_flags=0"
];

enableParallelBuilding = true;