Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pkgs/development/libraries/cimg/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ stdenv.mkDerivation rec {
owner = "dtschump";
repo = "CImg";
rev = "v.${version}";
sha256 = "1sb0z5ryh34y80ghlr2agsl64gayjmxpl96l9fjaylf5k2m3fg2b";
sha256 = "sha256-7v8651yDkxTdRMoGhEl4d/k7mxYwfIwW/rkuyjqVGwY=";
};

installPhase = ''
Expand Down
6 changes: 6 additions & 0 deletions pkgs/development/tools/build-managers/cmake/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,12 @@ stdenv.mkDerivation rec {
# CC_FOR_BUILD and CXX_FOR_BUILD are used to bootstrap cmake
+ ''
configureFlags="--parallel=''${NIX_BUILD_CORES:-1} CC=$CC_FOR_BUILD CXX=$CXX_FOR_BUILD $configureFlags"
''
# Detect dylibs in /usr/lib as system libraries on Darwin to correctly build App bundles
+ stdenv.lib.optionalString stdenv.isDarwin ''
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
+ stdenv.lib.optionalString stdenv.isDarwin ''
+ lib.optionalString stdenv.isDarwin ''

As per recent contributing change.

substituteInPlace Modules/GetPrerequisites.cmake --replace \
"if(resolved_file MATCHES \"^(/System/Library/|/var/empty/lib/)\")" \
"if(resolved_file MATCHES \"^(/System/Library/|/usr/lib/)\")"
'';

configureFlags = [
Expand Down