Skip to content
Merged
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
3 changes: 3 additions & 0 deletions pkgs/applications/audio/in-formant/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ stdenv.mkDerivation rec {
cp in-formant $out/bin
'';

# RPATH of binary /nix/store/.../bin/... contains a forbidden reference to /build/
cmakeFlags = [ "-DCMAKE_SKIP_BUILD_RPATH=ON" ];

meta = with lib; {
description = "A real-time pitch and formant tracking software";
homepage = "https://github.com/in-formant/in-formant";
Expand Down
5 changes: 5 additions & 0 deletions pkgs/applications/science/misc/simgrid/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,11 @@ stdenv.mkDerivation rec {
patchShebangs ..
'';

# needed by tests (so libsimgrid.so is found)
preConfigure = ''
export LD_LIBRARY_PATH="$PWD/build/lib"
'';

doCheck = true;
preCheck = ''
# prevent the execution of tests known to fail
Expand Down
5 changes: 4 additions & 1 deletion pkgs/applications/video/ccextractor/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,10 @@ stdenv.mkDerivation rec {
++ lib.optional (!stdenv.isLinux) libiconv
++ lib.optionals enableOcr [ leptonica tesseract4 ffmpeg ];

cmakeFlags = lib.optionals enableOcr [ "-DWITH_OCR=on" "-DWITH_HARDSUBX=on" ];
cmakeFlags = [
# file RPATH_CHANGE could not write new RPATH:
"-DCMAKE_SKIP_BUILD_RPATH=ON"
] ++ lib.optionals enableOcr [ "-DWITH_OCR=on" "-DWITH_HARDSUBX=on" ];

postInstall = lib.optionalString enableOcr ''
wrapProgram "$out/bin/ccextractor" \
Expand Down
6 changes: 6 additions & 0 deletions pkgs/development/libraries/galario/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,15 @@ stdenv.mkDerivation rec {
'';

preCheck = ''
${if stdenv.isDarwin then "export DYLD_LIBRARY_PATH=$(pwd)/src/" else "export LD_LIBRARY_PATH=$(pwd)/src/"}
${if enablePython then "sed -i -e 's|^#!.*|#!${stdenv.shell}|' python/py.test.sh" else ""}
'';

cmakeFlags = lib.optionals enablePython [
# RPATH of binary /nix/store/.../lib/python3.10/site-packages/galario/double/libcommon.so contains a forbidden reference to /build/
"-DCMAKE_SKIP_BUILD_RPATH=ON"
];

doCheck = true;

postInstall = lib.optionalString (stdenv.isDarwin && enablePython) ''
Expand Down
2 changes: 2 additions & 0 deletions pkgs/development/tools/qtcreator/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ let
# Fetch clang from qt vendor, this contains submodules like this:
# clang<-clang-tools-extra<-clazy.
clang_qt_vendor = llvmPackages_8.clang-unwrapped.overrideAttrs (oldAttrs: {
# file RPATH_CHANGE could not write new RPATH
cmakeFlags = [ "-DCMAKE_SKIP_BUILD_RPATH=ON" ];
src = fetchgit {
url = "https://code.qt.io/clang/clang.git";
rev = "c12b012bb7465299490cf93c2ae90499a5c417d5";
Expand Down