Skip to content

Commit

Permalink
Merge #181133: staging-next 2022-07-11
Browse files Browse the repository at this point in the history
  • Loading branch information
vcunat committed Jul 19, 2022
2 parents a044608 + c698c07 commit 2543ab9
Show file tree
Hide file tree
Showing 211 changed files with 2,610 additions and 956 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@
"adapter.auto-port-config": {
"mode": "dsp",
"monitor": false,
"control": false,
"position": "unknown"
}
}
Expand All @@ -109,6 +110,7 @@
"adapter.auto-port-config": {
"mode": "dsp",
"monitor": false,
"control": false,
"position": "unknown"
}
}
Expand Down
3 changes: 3 additions & 0 deletions pkgs/applications/audio/audacity/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,9 @@ in stdenv.mkDerivation rec {
"-DDISABLE_DYNAMIC_LOADING_FFMPEG=ON"
"-Daudacity_conan_enabled=Off"
"-Daudacity_use_ffmpeg=loaded"

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

doCheck = false; # Test fails
Expand Down
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
2 changes: 1 addition & 1 deletion pkgs/applications/audio/speech-denoiser/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ stdenv.mkDerivation {
nativeBuildInputs = [ pkg-config meson ninja ];
buildInputs = [ lv2 rnnoise-nu ];

mesonFlags = ("--prefix=${placeholder "out"}/lib/lv2");
mesonFlags = [ "--prefix=${placeholder "out"}/lib/lv2" ];

postPatch = ''
substituteInPlace meson.build \
Expand Down
5 changes: 5 additions & 0 deletions pkgs/applications/audio/tenacity/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,11 @@ stdenv.mkDerivation rec {
util-linux
];

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

meta = with lib; {
description = "Sound editor with graphical UI";
homepage = "https://tenacityaudio.org/";
Expand Down
5 changes: 5 additions & 0 deletions pkgs/applications/emulators/resim/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,10 @@ stdenv.mkDerivation {
cp -v vc4emul/vc4emul $out/bin/vc4emul
'';

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

meta.license = lib.licenses.mit;
}
1 change: 0 additions & 1 deletion pkgs/applications/gis/qgis/unwrapped-ltr.nix
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,6 @@ in mkDerivation rec {
'';

cmakeFlags = [
"-DCMAKE_SKIP_BUILD_RPATH=OFF"
"-DWITH_3D=True"
"-DWITH_PDAL=TRUE"
"-DPYQT5_SIP_DIR=${py.pkgs.pyqt5}/${py.pkgs.python.sitePackages}/PyQt5/bindings"
Expand Down
1 change: 0 additions & 1 deletion pkgs/applications/gis/qgis/unwrapped.nix
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,6 @@ in mkDerivation rec {
'';

cmakeFlags = [
"-DCMAKE_SKIP_BUILD_RPATH=OFF"
"-DWITH_3D=True"
"-DWITH_PDAL=TRUE"
"-DPYQT5_SIP_DIR=${py.pkgs.pyqt5}/${py.pkgs.python.sitePackages}/PyQt5/bindings"
Expand Down
7 changes: 0 additions & 7 deletions pkgs/applications/graphics/paraview/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,6 @@ in mkDerivation rec {
export QT_PLUGIN_PATH=${qtbase.bin}/${qtbase.qtPluginPrefix}
'';

# During build, binaries are called that rely on freshly built
# libraries. These reside in build/lib, and are not found by
# default.
preBuild = ''
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH''${LD_LIBRARY_PATH:+:}$PWD/lib:$PWD/VTK/ThirdParty/vtkm/vtk-m/lib
'';

cmakeFlags = [
"-DCMAKE_BUILD_TYPE=Release"
"-DPARAVIEW_ENABLE_FFMPEG=ON"
Expand Down
4 changes: 0 additions & 4 deletions pkgs/applications/kde/dolphin.nix
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,4 @@ mkDerivation {
wayland qtwayland
];
outputs = [ "out" "dev" ];
# We need the RPATH for linking, because the `libkdeinit5_dolphin.so` links
# private against its dependencies and without the correct RPATH, these
# dependencies are not found.
cmakeFlags = [ "-DCMAKE_SKIP_BUILD_RPATH=OFF" ];
}
7 changes: 0 additions & 7 deletions pkgs/applications/misc/audio/soxr/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,6 @@ stdenv.mkDerivation rec {

outputs = [ "out" "doc" ]; # headers are just two and very small

preConfigure =
if stdenv.isDarwin then ''
export DYLD_LIBRARY_PATH="$DYLD_LIBRARY_PATH''${DYLD_LIBRARY_PATH:+:}"`pwd`/build/src
'' else ''
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH''${LD_LIBRARY_PATH:+:}"`pwd`/build/src
'';

nativeBuildInputs = [ cmake ];

meta = with lib; {
Expand Down
2 changes: 2 additions & 0 deletions pkgs/applications/misc/edgetx/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ mkDerivation rec {
"-DGTEST_ROOT=${gtest.src}/googletest"
"-DQT_TRANSLATIONS_DIR=${qttranslations}/translations"
"-DDFU_UTIL_PATH=${dfu-util}/bin/dfu-util"
# file RPATH_CHANGE could not write new RPATH
"-DCMAKE_SKIP_BUILD_RPATH=ON"
];

meta = with lib; {
Expand Down
3 changes: 3 additions & 0 deletions pkgs/applications/misc/opentx/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ mkDerivation rec {
# XXX I would prefer to include these here, though we will need to file a bug upstream to get that changed.
#"-DDFU_UTIL_PATH=${dfu-util}/bin/dfu-util"
#"-DAVRDUDE_PATH=${avrdude}/bin/avrdude"

# file RPATH_CHANGE could not write new RPATH
"-DCMAKE_SKIP_BUILD_RPATH=ON"
];

meta = with lib; {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,15 +1,5 @@
{ lib, stdenv, fetchFromGitHub, nodejs, bash, nodePackages, unzip }:

let
# OpenAsar fails with default unzip, throwing "lchmod (file attributes) error: Operation not supported"
unzipFix =
if stdenv.isLinux then
unzip.overrideAttrs (oldAttrs: {
buildFlags = oldAttrs.buildFlags ++ [ "LOCAL_UNZIP=-DNO_LCHMOD" ];
})
else
unzip;
in
stdenv.mkDerivation rec {
pname = "openasar";
version = "unstable-2022-06-27";
Expand All @@ -24,7 +14,7 @@ stdenv.mkDerivation rec {
postPatch = ''
# Hardcode unzip path
substituteInPlace ./src/updater/moduleUpdater.js \
--replace \'unzip\' \'${unzipFix}/bin/unzip\'
--replace \'unzip\' \'${unzip}/bin/unzip\'
# Remove auto-update feature
echo "module.exports = async () => log('AsarUpdate', 'Removed');" > ./src/asarUpdate.js
'';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,9 @@ mkDerivation rec {
cmakeFlags = [
"-DMINIZIP_INCLUDE_DIRS=${minizip2}/include"
"-DMINIZIP_LIBRARIES=minizip"

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

# The default install phase fails because the paths are somehow messed up in
Expand Down
4 changes: 0 additions & 4 deletions pkgs/applications/networking/sniffers/wireshark/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,6 @@ in stdenv.mkDerivation {
sed -i -e '1i cmake_policy(SET CMP0025 NEW)' CMakeLists.txt
'';

preBuild = ''
export LD_LIBRARY_PATH="$PWD/run"
'';

postInstall = ''
# to remove "cycle detected in the references"
mkdir -p $dev/lib/wireshark
Expand Down
2 changes: 1 addition & 1 deletion pkgs/applications/office/PageEdit/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ mkDerivation rec {

nativeBuildInputs = [ cmake qttranslations ];
propagatedBuildInputs = [ qtsvg qtwebengine ];
cmakeFlags = "-DINSTALL_BUNDLED_DICTS=0";
cmakeFlags = [ "-DINSTALL_BUNDLED_DICTS=0" ];

meta = with lib; {
description = "ePub XHTML Visual Editor";
Expand Down
2 changes: 0 additions & 2 deletions pkgs/applications/office/gnucash/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -154,8 +154,6 @@ stdenv.mkDerivation rec {
test-xml-pricedb \
test-xml-transaction \
test-xml2-is-file
export LD_LIBRARY_PATH="$PWD/lib:$PWD/lib/gnucash:$PWD/lib/gnucash/test:$PWD/lib/gnucash/test/future"
'';

preFixup = ''
Expand Down
4 changes: 0 additions & 4 deletions pkgs/applications/radio/dsd/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,6 @@ stdenv.mkDerivation rec {
] ++ lib.optionals portaudioSupport [ portaudio ];

doCheck = true;
preCheck = ''
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH''${LD_LIBRARY_PATH:+:}$PWD
export DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH''${DYLD_LIBRARY_PATH:+:}$PWD
'';

meta = with lib; {
description = "Digital Speech Decoder";
Expand Down
6 changes: 5 additions & 1 deletion pkgs/applications/science/electronics/kicad/base.nix
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,11 @@ stdenv.mkDerivation rec {

makeFlags = optionals (debug) [ "CFLAGS+=-Og" "CFLAGS+=-ggdb" ];

cmakeFlags = optionals (withScripting) [
cmakeFlags = [
# RPATH of binary /nix/store/.../bin/... contains a forbidden reference to /build/
"-DCMAKE_SKIP_BUILD_RPATH=ON"
]
++ optionals (withScripting) [
"-DKICAD_SCRIPTING_WXPYTHON=ON"
]
++ optionals (!withScripting) [
Expand Down
5 changes: 5 additions & 0 deletions pkgs/applications/science/logic/btor2tools/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,11 @@ stdenv.mkDerivation rec {

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

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

meta = with lib; {
description = "A generic parser and tool package for the BTOR2 format";
homepage = "https://github.com/Boolector/btor2tools";
Expand Down
3 changes: 3 additions & 0 deletions pkgs/applications/science/logic/monosat/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,9 @@ let
"-DBUILD_STATIC=OFF"
"-DJAVA=${boolToCmake includeJava}"
"-DGPL=${boolToCmake includeGplCode}"

# file RPATH_CHANGE could not write new RPATH
"-DCMAKE_SKIP_BUILD_RPATH=ON"
];

postInstall = optionalString includeJava ''
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,6 @@ stdenv.mkDerivation rec {
"-DCMAKE_DISABLE_FIND_PACKAGE_Mosek=ON"
"-DCMAKE_DISABLE_FIND_PACKAGE_TFLogger=ON"
"-DCMAKE_DISABLE_FIND_PACKAGE_ViennaCL=ON"
"-DCMAKE_SKIP_BUILD_RPATH=OFF"
"-DCMAKE_CTEST_ARGUMENTS='--exclude-regex;TrainedModelSerialization'" # Sporadic segfault
"-DENABLE_TESTING=${enableIf doCheck}"
"-DDISABLE_META_INTEGRATION_TESTS=ON"
Expand Down
3 changes: 3 additions & 0 deletions pkgs/applications/science/misc/simgrid/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,9 @@ stdenv.mkDerivation rec {
"-Denable_compile_warnings=off"
"-Denable_compile_optimizations=${optionOnOff optimize}"
"-Denable_lto=${optionOnOff optimize}"

# RPATH of binary /nix/store/.../bin/... contains a forbidden reference to /build/
"-DCMAKE_SKIP_BUILD_RPATH=ON"
];
makeFlags = optional debug "VERBOSE=1";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ assert sendEmailSupport -> perlSupport;
assert svnSupport -> perlSupport;

let
version = "2.36.1";
version = "2.37.0";
svn = subversionClient.override { perlBindings = perlSupport; };
gitwebPerlLibs = with perlPackages; [ CGI HTMLParser CGIFast FCGI FCGIProcManager HTMLTagCloud ];
in
Expand All @@ -39,7 +39,7 @@ stdenv.mkDerivation {

src = fetchurl {
url = "https://www.kernel.org/pub/software/scm/git/git-${version}.tar.xz";
sha256 = "0w43a35mhc2qf2gjkxjlnkf2lq8g0snf34iy5gqx2678yq7llpa0";
sha256 = "sha256-n3+hcRvQDE7D3eL+REB9wT8S5HcrXjxypY20wHSVQR8=";
};

outputs = [ "out" ] ++ lib.optional withManual "doc";
Expand Down
1 change: 0 additions & 1 deletion pkgs/applications/video/avidemux/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@ stdenv.mkDerivation rec {
cd "$sourceRoot"
patchPhase
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH''${LD_LIBRARY_PATH:+:}${libXext}/lib"
${stdenv.shell} bootStrap.bash \
--with-core \
${if withQT then "--with-qt" else "--without-qt"} \
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
2 changes: 1 addition & 1 deletion pkgs/applications/video/rtabmap/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ stdenv.mkDerivation rec {
];

# Disable warnings that are irrelevant to us as packagers
cmakeFlags = "-Wno-dev";
cmakeFlags = [ "-Wno-dev" ];

# We run one of the executables we build while the build is
# still running (and patchelf hasn't been invoked) which means
Expand Down
4 changes: 2 additions & 2 deletions pkgs/data/icons/arc-icon-theme/default.nix
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{ lib, stdenv, fetchFromGitHub, autoreconfHook, gtk3, gnome, moka-icon-theme, gnome-icon-theme, hicolor-icon-theme }:
{ lib, stdenvNoCC, fetchFromGitHub, autoreconfHook, gtk3, gnome, moka-icon-theme, gnome-icon-theme, hicolor-icon-theme }:

stdenv.mkDerivation rec {
stdenvNoCC.mkDerivation rec {
pname = "arc-icon-theme";
version = "2016-11-22";

Expand Down
4 changes: 2 additions & 2 deletions pkgs/data/icons/beauty-line-icon-theme/default.nix
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{ lib, stdenv, fetchzip, breeze-icons, gtk3, gnome-icon-theme, hicolor-icon-theme, mint-x-icons, pantheon }:
{ lib, stdenvNoCC, fetchzip, breeze-icons, gtk3, gnome-icon-theme, hicolor-icon-theme, mint-x-icons, pantheon }:

stdenv.mkDerivation rec {
stdenvNoCC.mkDerivation rec {
pname = "BeautyLine";
version = "0.0.1";

Expand Down
4 changes: 2 additions & 2 deletions pkgs/data/icons/bibata-cursors/default.nix
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{ lib
, stdenv
, stdenvNoCC
, fetchFromGitHub
, fetchurl
, clickgen
, unzip
}:

stdenv.mkDerivation rec {
stdenvNoCC.mkDerivation rec {
pname = "bibata-cursors";
version = "1.1.2";

Expand Down
4 changes: 2 additions & 2 deletions pkgs/data/icons/bibata-cursors/extra.nix
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{ lib
, stdenv
, stdenvNoCC
, fetchFromGitHub
, fetchurl
, clickgen
, unzip
}:

stdenv.mkDerivation rec {
stdenvNoCC.mkDerivation rec {
pname = "bibata-extra-cursors";
version = "1.0.1";

Expand Down
4 changes: 2 additions & 2 deletions pkgs/data/icons/bibata-cursors/translucent.nix
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{ lib, stdenv, fetchFromGitHub }:
{ lib, stdenvNoCC, fetchFromGitHub }:

stdenv.mkDerivation rec {
stdenvNoCC.mkDerivation rec {
pname = "bibata-cursors-translucent";
version = "1.1.1";

Expand Down
4 changes: 2 additions & 2 deletions pkgs/data/icons/capitaine-cursors/default.nix
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{ lib, stdenv, fetchFromGitHub, fetchpatch, makeFontsConf
{ lib, stdenvNoCC, fetchFromGitHub, fetchpatch, makeFontsConf
, inkscape, xcursorgen, bc }:

stdenv.mkDerivation rec {
stdenvNoCC.mkDerivation rec {
pname = "capitaine-cursors";
version = "4";

Expand Down
4 changes: 2 additions & 2 deletions pkgs/data/icons/comixcursors/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ lib, stdenv, fetchFromGitLab, bc, librsvg, xcursorgen }:
{ lib, stdenvNoCC, fetchFromGitLab, bc, librsvg, xcursorgen }:

let
dimensions = {
Expand All @@ -16,7 +16,7 @@ let
# meta.longDescription.)
map variantName product;
in
stdenv.mkDerivation rec {
stdenvNoCC.mkDerivation rec {
pname = "comixcursors";
version = "0.9.2";

Expand Down
Loading

0 comments on commit 2543ab9

Please sign in to comment.