···44 export QT_PLUGIN_PATH=${qtbase.bin}/${qtbase.qtPluginPrefix}
45 '';
4647- # During build, binaries are called that rely on freshly built
48- # libraries. These reside in build/lib, and are not found by
49- # default.
50- preBuild = ''
51- export LD_LIBRARY_PATH=$LD_LIBRARY_PATH''${LD_LIBRARY_PATH:+:}$PWD/lib:$PWD/VTK/ThirdParty/vtkm/vtk-m/lib
52- '';
53-54 cmakeFlags = [
55 "-DCMAKE_BUILD_TYPE=Release"
56 "-DPARAVIEW_ENABLE_FFMPEG=ON"
···27 wayland qtwayland
28 ];
29 outputs = [ "out" "dev" ];
30- # We need the RPATH for linking, because the `libkdeinit5_dolphin.so` links
31- # private against its dependencies and without the correct RPATH, these
32- # dependencies are not found.
33- cmakeFlags = [ "-DCMAKE_SKIP_BUILD_RPATH=OFF" ];
34}
···1617 outputs = [ "out" "doc" ]; # headers are just two and very small
1819- preConfigure =
20- if stdenv.isDarwin then ''
21- export DYLD_LIBRARY_PATH="$DYLD_LIBRARY_PATH''${DYLD_LIBRARY_PATH:+:}"`pwd`/build/src
22- '' else ''
23- export LD_LIBRARY_PATH="$LD_LIBRARY_PATH''${LD_LIBRARY_PATH:+:}"`pwd`/build/src
24- '';
25-26 nativeBuildInputs = [ cmake ];
2728 meta = with lib; {
···1617 outputs = [ "out" "doc" ]; # headers are just two and very small
18000000019 nativeBuildInputs = [ cmake ];
2021 meta = with lib; {
···61 CXXFLAGS = [
62 ''-DNIXPKGS_XWAYLAND=\"${lib.getBin xwayland}/bin/Xwayland\"''
63 ];
64- cmakeFlags = [ "-DCMAKE_SKIP_BUILD_RPATH=OFF" ];
65 postInstall = ''
66 # Some package(s) refer to these service types by the wrong name.
67 # I would prefer to patch those packages, but I cannot find them!
···61 CXXFLAGS = [
62 ''-DNIXPKGS_XWAYLAND=\"${lib.getBin xwayland}/bin/Xwayland\"''
63 ];
064 postInstall = ''
65 # Some package(s) refer to these service types by the wrong name.
66 # I would prefer to patch those packages, but I cannot find them!
-6
pkgs/development/compilers/halide/default.nix
···3233 cmakeFlags = [ "-DWARNINGS_AS_ERRORS=OFF" "-DWITH_PYTHON_BINDINGS=OFF" ];
3435- # To handle the lack of 'local' RPATH; required, as they call one of
36- # their built binaries requiring their libs, in the build process.
37- preBuild = ''
38- export LD_LIBRARY_PATH="$(pwd)/src''${LD_LIBRARY_PATH:+:}$LD_LIBRARY_PATH"
39- '';
40-41 # Note: only openblas and not atlas part of this Nix expression
42 # see pkgs/development/libraries/science/math/liblapack/3.5.0.nix
43 # to get a hint howto setup atlas instead of openblas
···3233 cmakeFlags = [ "-DWARNINGS_AS_ERRORS=OFF" "-DWITH_PYTHON_BINDINGS=OFF" ];
3400000035 # Note: only openblas and not atlas part of this Nix expression
36 # see pkgs/development/libraries/science/math/liblapack/3.5.0.nix
37 # to get a hint howto setup atlas instead of openblas
-6
pkgs/development/compilers/solc/default.nix
···90 doCheck = false;
9192 checkPhase = ''
93- while IFS= read -r -d ''' dir
94- do
95- LD_LIBRARY_PATH=$LD_LIBRARY_PATH''${LD_LIBRARY_PATH:+:}$(pwd)/$dir
96- export LD_LIBRARY_PATH
97- done < <(find . -type d -print0)
98-99 pushd ..
100 # IPC tests need aleth avaliable, so we disable it
101 sed -i "s/IPC_ENABLED=true/IPC_ENABLED=false\nIPC_FLAGS=\"--no-ipc\"/" ./scripts/tests.sh
···90 doCheck = false;
9192 checkPhase = ''
00000093 pushd ..
94 # IPC tests need aleth avaliable, so we disable it
95 sed -i "s/IPC_ENABLED=true/IPC_ENABLED=false\nIPC_FLAGS=\"--no-ipc\"/" ./scripts/tests.sh
···2122 doCheck = true;
23 checkTarget = "test";
24- preCheck = ''
25- export LD_LIBRARY_PATH=$PWD/libcaf_core:$PWD/libcaf_io
26- export DYLD_LIBRARY_PATH=$PWD/libcaf_core:$PWD/libcaf_io
27- '';
2829 meta = with lib; {
30 description = "An open source implementation of the actor model in C++";
···2122 doCheck = true;
23 checkTarget = "test";
00002425 meta = with lib; {
26 description = "An open source implementation of the actor model in C++";
-5
pkgs/development/libraries/cpp-netlib/default.nix
···19 "-DCPP-NETLIB_BUILD_SHARED_LIBS=ON"
20 ];
2122- # The test driver binary lacks an RPath to the library's libs
23- preCheck = ''
24- export LD_LIBRARY_PATH=$PWD/libs/network/src
25- '';
26-27 # Most tests make network GET requests to various websites
28 doCheck = false;
29
···19 "-DCPP-NETLIB_BUILD_SHARED_LIBS=ON"
20 ];
210000022 # Most tests make network GET requests to various websites
23 doCheck = false;
24
···31 "-DPLUGIN_VIEW_GRANTLEE=ON"
32 ];
3334- preBuild = lib.optionalString stdenv.isLinux ''
35- export LD_LIBRARY_PATH="$LD_LIBRARY_PATH''${LD_LIBRARY_PATH:+:}`pwd`/Cutelyst:`pwd`/EventLoopEPoll"
36- '';
37-38- postBuild = lib.optionalString stdenv.isLinux ''
39- unset LD_LIBRARY_PATH
40- '';
41-42 meta = with lib; {
43 description = "C++ Web Framework built on top of Qt";
44 homepage = "https://cutelyst.org/";
···31 "-DPLUGIN_VIEW_GRANTLEE=ON"
32 ];
330000000034 meta = with lib; {
35 description = "C++ Web Framework built on top of Qt";
36 homepage = "https://cutelyst.org/";
+1-1
pkgs/development/libraries/docopt_cpp/default.nix
···33 "@CMAKE_INSTALL_LIBDIR@"
34 '';
3536- checkPhase = "LD_LIBRARY_PATH=$(pwd) python ./run_tests";
3738 meta = with lib; {
39 description = "C++11 port of docopt";
···33 "@CMAKE_INSTALL_LIBDIR@"
34 '';
3536+ checkPhase = "python ./run_tests";
3738 meta = with lib; {
39 description = "C++11 port of docopt";
+6-1
pkgs/development/libraries/fcppt/default.nix
···13 nativeBuildInputs = [ cmake ];
14 buildInputs = [ boost catch2 metal ];
1516- cmakeFlags = [ "-DCMAKE_SKIP_BUILD_RPATH=false" "-DENABLE_BOOST=true" "-DENABLE_EXAMPLES=true" "-DENABLE_CATCH=true" "-DENABLE_TEST=true" ];
000001718 meta = with lib; {
19 description = "Freundlich's C++ toolkit";
···13 nativeBuildInputs = [ cmake ];
14 buildInputs = [ boost catch2 metal ];
1516+ cmakeFlags = [
17+ "-DENABLE_BOOST=true"
18+ "-DENABLE_EXAMPLES=true"
19+ "-DENABLE_CATCH=true"
20+ "-DENABLE_TEST=true"
21+ ];
2223 meta = with lib; {
24 description = "Freundlich's C++ toolkit";
···1718 cmakeFlags = [
19 "-DBUILD_SHARED_LIBS=ON"
20- # Mak CMake place RPATHs such that tests will find the built libraries.
21- # See https://github.com/NixOS/nixpkgs/pull/144561#discussion_r742468811 and https://github.com/NixOS/nixpkgs/pull/108496
22- "-DCMAKE_SKIP_BUILD_RPATH=OFF"
23 ];
2425 # TODO: Re-enable Darwin tests once we're on a release that has https://github.com/google/glog/issues/709#issuecomment-960381653 fixed
···1718 cmakeFlags = [
19 "-DBUILD_SHARED_LIBS=ON"
00020 ];
2122 # TODO: Re-enable Darwin tests once we're on a release that has https://github.com/google/glog/issues/709#issuecomment-960381653 fixed
···43 sed -i 's/#define JSONCPP_USING_SECURE_MEMORY 0/#define JSONCPP_USING_SECURE_MEMORY 1/' include/json/version.h
44 '';
4546- # Hack to be able to run the test, broken because we use
47- # CMAKE_SKIP_BUILD_RPATH to avoid cmake resetting rpath on install
48- preBuild = if stdenv.isDarwin then ''
49- export DYLD_LIBRARY_PATH="$PWD/lib''${DYLD_LIBRARY_PATH:+:}$DYLD_LIBRARY_PATH"
50- '' else ''
51- export LD_LIBRARY_PATH="$PWD/lib''${LD_LIBRARY_PATH:+:}$LD_LIBRARY_PATH"
52- '';
53-54 nativeBuildInputs = [ cmake python3 validatePkgConfig ];
5556 cmakeFlags = [
···129130 doCheck = !stdenv.hostPlatform.isi686;
131132- # The test driver runs a test `LibraryCLinkageTest` which without
133- # LD_LIBRARY_PATH setting errors with:
134- # /build/source/build/tools/tests/libjxl_test: error while loading shared libraries: libjxl.so.0
135- # The required file is in the build directory (`$PWD`).
136- preCheck = if stdenv.isDarwin then ''
137- export DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH''${DYLD_LIBRARY_PATH:+:}$PWD
138- '' else ''
139- export LD_LIBRARY_PATH=$LD_LIBRARY_PATH''${LD_LIBRARY_PATH:+:}$PWD
140- '';
141-142 meta = with lib; {
143 homepage = "https://github.com/libjxl/libjxl";
144 description = "JPEG XL image format reference implementation.";
···129130 doCheck = !stdenv.hostPlatform.isi686;
1310000000000132 meta = with lib; {
133 homepage = "https://github.com/libjxl/libjxl";
134 description = "JPEG XL image format reference implementation.";
···21 # Tests fail on some Hydra builders, because they do not support SSE4.2.
22 doCheck = false;
2324- # The test driver doesn't add an RPath to the build libdir
25- preCheck = ''
26- export LD_LIBRARY_PATH=$LD_LIBRARY_PATH''${LD_LIBRARY_PATH:+:}$PWD/src
27- export DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH''${DYLD_LIBRARY_PATH:+:}$PWD/src
28- '';
29-30 # The cmake install gets tripped up and installs a nix tree into $out, in
31 # addition to the correct install; clean it up.
32 postInstall = ''
···21 # Tests fail on some Hydra builders, because they do not support SSE4.2.
22 doCheck = false;
2300000024 # The cmake install gets tripped up and installs a nix tree into $out, in
25 # addition to the correct install; clean it up.
26 postInstall = ''
-5
pkgs/development/libraries/orcania/default.nix
···1819 doCheck = true;
2021- preCheck = ''
22- export LD_LIBRARY_PATH="$(pwd)''${LD_LIBRARY_PATH:+:}$LD_LIBRARY_PATH"
23- export DYLD_FALLBACK_LIBRARY_PATH="$(pwd):$DYLD_FALLBACK_LIBRARY_PATH"
24- '';
25-26 meta = with lib; {
27 description = "Potluck with different functions for different purposes that can be shared among C programs";
28 homepage = "https://github.com/babelouest/orcania";
···1819 doCheck = true;
200000021 meta = with lib; {
22 description = "Potluck with different functions for different purposes that can be shared among C programs";
23 homepage = "https://github.com/babelouest/orcania";
···2223 checkInputs = [ check ];
2425- # Hack to be able to run the test, broken because we use
26- # CMAKE_SKIP_BUILD_RPATH to avoid cmake resetting rpath on install
27- preCheck = if stdenv.isDarwin then ''
28- export DYLD_LIBRARY_PATH="$(pwd)''${DYLD_LIBRARY_PATH:+:}$DYLD_LIBRARY_PATH"
29- '' else ''
30- export LD_LIBRARY_PATH="$(pwd)''${LD_LIBRARY_PATH:+:}$LD_LIBRARY_PATH"
31- '';
32-33 preConfigure = ''
34 # Enable long long support (required for filezilla)
35 sed -ire '/PUGIXML_HAS_LONG_LONG/ s/^\/\///' src/pugiconfig.hpp
···2223 checkInputs = [ check ];
240000000025 preConfigure = ''
26 # Enable long long support (required for filezilla)
27 sed -ire '/PUGIXML_HAS_LONG_LONG/ s/^\/\///' src/pugiconfig.hpp
···6768 # Run single threaded
69 export OMP_NUM_THREADS=1
70-71- export LD_LIBRARY_PATH=$LD_LIBRARY_PATH''${LD_LIBRARY_PATH:+:}`pwd`/lib
72 '';
7374 meta = with lib; {
···6768 # Run single threaded
69 export OMP_NUM_THREADS=1
0070 '';
7172 meta = with lib; {
···5354 patches = map fetchpatch patchesToFetch;
5556- preBuild = ''
57- export LD_LIBRARY_PATH="$(pwd)/lib";
58- '';
59-60 dontWrapQtApps = true;
6162 # Shared libraries don't work, because of rpath troubles with the current
···5354 patches = map fetchpatch patchesToFetch;
55000056 dontWrapQtApps = true;
5758 # Shared libraries don't work, because of rpath troubles with the current
-5
pkgs/development/libraries/yder/default.nix
···3940 doCheck = true;
4142- preCheck = ''
43- export LD_LIBRARY_PATH="$(pwd)''${LD_LIBRARY_PATH:+:}$LD_LIBRARY_PATH"
44- export DYLD_FALLBACK_LIBRARY_PATH="$(pwd):$DYLD_FALLBACK_LIBRARY_PATH"
45- '';
46-47 meta = with lib; {
48 description = "Logging library for C applications";
49 homepage = "https://github.com/babelouest/yder";
···3940 doCheck = true;
410000042 meta = with lib; {
43 description = "Logging library for C applications";
44 homepage = "https://github.com/babelouest/yder";
···102 cmakeFlags="-DBUILD_TESTING=OFF $cmakeFlags"
103 fi
104105- # Avoid cmake resetting the rpath of binaries, on make install
106- # And build always Release, to ensure optimisation flags
107- cmakeFlags="-DCMAKE_BUILD_TYPE=${cmakeBuildType:-Release} -DCMAKE_SKIP_BUILD_RPATH=ON $cmakeFlags"
108109 # Disable user package registry to avoid potential side effects
110 # and unecessary attempts to access non-existent home folder
···102 cmakeFlags="-DBUILD_TESTING=OFF $cmakeFlags"
103 fi
104105+ # Always build Release, to ensure optimisation flags
106+ cmakeFlags="-DCMAKE_BUILD_TYPE=${cmakeBuildType:-Release} $cmakeFlags"
0107108 # Disable user package registry to avoid potential side effects
109 # and unecessary attempts to access non-existent home folder
···108 "-DTCAM_INTERNAL_ARAVIS=OFF"
109 "-DTCAM_ARAVIS_USB_VISION=${if withAravis && withAravisUsbVision then "ON" else "OFF"}"
110 "-DTCAM_INSTALL_FORCE_PREFIX=ON"
111- # There are gobject introspection commands launched as part of the build. Those have a runtime
112- # dependency on `libtcam` (which itself is built as part of this build). In order to allow
113- # that, we set the dynamic linker's path to point on the build time location of the library.
114- "-DCMAKE_SKIP_BUILD_RPATH=OFF"
115 ];
116117 doCheck = true;
···34 outputs = [ "out" "static" ];
3536 cmakeFlags = [
37- "-DCMAKE_SKIP_BUILD_RPATH=OFF" # To run libmysql/libmysql_api_test during build.
38 "-DFORCE_UNSUPPORTED_COMPILER=1" # To configure on Darwin.
39 "-DWITH_ROUTER=OFF" # It may be packaged separately.
40 "-DWITH_SYSTEM_LIBS=ON"
···34 outputs = [ "out" "static" ];
3536 cmakeFlags = [
037 "-DFORCE_UNSUPPORTED_COMPILER=1" # To configure on Darwin.
38 "-DWITH_ROUTER=OFF" # It may be packaged separately.
39 "-DWITH_SYSTEM_LIBS=ON"
-1
pkgs/tools/backup/percona-xtrabackup/generic.nix
···45 "-DWITH_ZLIB=system"
46 "-DWITH_VALGRIND=ON"
47 "-DWITH_MAN_PAGES=OFF"
48- "-DCMAKE_SKIP_BUILD_RPATH=OFF" # To run libmysql/libmysql_api_test during build.
49 ];
5051 postInstall = ''
···184 substituteInPlace src/common/module.c --replace "/sbin/modprobe" "modprobe"
185 substituteInPlace src/common/module.c --replace "/bin/grep" "grep"
186187- # for pybind/rgw to find internal dep
188- export LD_LIBRARY_PATH="$PWD/build/lib''${LD_LIBRARY_PATH:+:}$LD_LIBRARY_PATH"
189 # install target needs to be in PYTHONPATH for "*.pth support" check to succeed
190 # set PYTHONPATH, so the build system doesn't silently skip installing ceph-volume and others
191 export PYTHONPATH=${ceph-python-env}/${sitePackages}:$lib/${sitePackages}:$out/${sitePackages}
···184 substituteInPlace src/common/module.c --replace "/sbin/modprobe" "modprobe"
185 substituteInPlace src/common/module.c --replace "/bin/grep" "grep"
18600187 # install target needs to be in PYTHONPATH for "*.pth support" check to succeed
188 # set PYTHONPATH, so the build system doesn't silently skip installing ceph-volume and others
189 export PYTHONPATH=${ceph-python-env}/${sitePackages}:$lib/${sitePackages}:$out/${sitePackages}