Merge #53490: fix treewide linking errors after #51770

Issue #53001.  This might not be all of them, but let's not wait.
This commit is contained in:
Vladimír Čunát 2019-01-06 12:14:52 +01:00
commit 10a12194e3
No known key found for this signature in database
GPG Key ID: E747DF1F9575A3AA
56 changed files with 199 additions and 19 deletions

View File

@ -1,4 +1,4 @@
{ stdenv, fetchurl, makeWrapper, pkgconfig, alsaLib, dbus, libjack2 { stdenv, fetchurl, fetchpatch, makeWrapper, pkgconfig, alsaLib, dbus, libjack2
, wafHook , wafHook
, python2Packages}: , python2Packages}:
@ -16,6 +16,17 @@ in stdenv.mkDerivation rec {
nativeBuildInputs = [ pkgconfig makeWrapper wafHook ]; nativeBuildInputs = [ pkgconfig makeWrapper wafHook ];
buildInputs = [ alsaLib dbus libjack2 python dbus-python ]; buildInputs = [ alsaLib dbus libjack2 python dbus-python ];
patches = [
(fetchpatch {
url = https://repo.or.cz/a2jmidid.git/patch/24e3b8e543256ae8fdfb4b75eb9fd775f07c46e2;
sha256 = "1nxrvnhxlgqc9wbxnp1gnpw4wjyzxvymwcg1gh2nqzmssgfykfkc";
})
(fetchpatch {
url = https://repo.or.cz/a2jmidid.git/patch/7f82da7eb2f540a94db23331be98d42a58ddc269;
sha256 = "1nab9zf0agbcj5pvhl90pz0cx1d204d4janqflc5ymjhy8jyrsdv";
})
];
postInstall = '' postInstall = ''
wrapProgram $out/bin/a2j_control --set PYTHONPATH $PYTHONPATH wrapProgram $out/bin/a2j_control --set PYTHONPATH $PYTHONPATH
''; '';

View File

@ -1,4 +1,4 @@
{ stdenv, fetchurl, libjack2, gtk2, pkgconfig }: { stdenv, autoreconfHook, fetchurl, libjack2, gtk2, pkgconfig }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "bitmeter-${version}"; name = "bitmeter-${version}";
@ -9,9 +9,16 @@ stdenv.mkDerivation rec {
sha256 = "09ck2gxqky701dc1p0ip61rrn16v0pdc7ih2hc2sd63zcw53g2a7"; sha256 = "09ck2gxqky701dc1p0ip61rrn16v0pdc7ih2hc2sd63zcw53g2a7";
}; };
nativeBuildInputs = [ pkgconfig ]; nativeBuildInputs = [ autoreconfHook pkgconfig ];
buildInputs = [ libjack2 gtk2 ]; buildInputs = [ libjack2 gtk2 ];
patches = [
(fetchurl {
url = https://gitweb.gentoo.org/repo/gentoo.git/plain/media-sound/bitmeter/files/bitmeter-1.2-fix-build-system.patch;
sha256 = "021mz6933iw7mpk6b9cbjr8naj6smbq1hwqjszlyx72qbwrrid7k";
})
];
meta = with stdenv.lib; { meta = with stdenv.lib; {
homepage = http://devel.tlrmx.org/audio/bitmeter/; homepage = http://devel.tlrmx.org/audio/bitmeter/;
description = "Also known as jack bitscope. Useful to detect denormals"; description = "Also known as jack bitscope. Useful to detect denormals";

View File

@ -7,6 +7,11 @@ stdenv.mkDerivation rec {
}; };
nativeBuildInputs = [ pkgconfig ]; nativeBuildInputs = [ pkgconfig ];
buildInputs = [ libjack2 ladspaH gtk2 alsaLib libxml2 librdf ]; buildInputs = [ libjack2 ladspaH gtk2 alsaLib libxml2 librdf ];
NIX_LDFLAGS = [
"-ldl"
"-lm"
"-lpthread"
];
meta = { meta = {
description = ''An effects "rack" for the JACK low latency audio API''; description = ''An effects "rack" for the JACK low latency audio API'';

View File

@ -18,6 +18,11 @@ stdenv.mkDerivation rec {
buildInputs = [ alsaLib gtk2 libjack2 libxml2 makeWrapper buildInputs = [ alsaLib gtk2 libjack2 libxml2 makeWrapper
pkgconfig readline ]; pkgconfig readline ];
propagatedBuildInputs = [ libuuid ]; propagatedBuildInputs = [ libuuid ];
NIX_LDFLAGS = [
"-lm"
"-lpthread"
"-luuid"
];
postInstall = '' postInstall = ''
for i in lash_control lash_panel for i in lash_control lash_panel

View File

@ -17,6 +17,7 @@ stdenv.mkDerivation rec {
preConfigure = "cd src"; preConfigure = "cd src";
buildInputs = [ alsaLib cmake makeWrapper libGLU_combined qt4 ]; buildInputs = [ alsaLib cmake makeWrapper libGLU_combined qt4 ];
NIX_LDFLAGS = [ "-lGL" "-lpthread" ];
postInstall = '' postInstall = ''
wrapProgram $out/bin/pianobooster \ wrapProgram $out/bin/pianobooster \

View File

@ -19,6 +19,10 @@ stdenv.mkDerivation rec {
preConfigure = "./autogen.sh"; preConfigure = "./autogen.sh";
NIX_LDFLAGS = [
"-lm"
];
meta = { meta = {
description = "JACK audio recorder"; description = "JACK audio recorder";
homepage = http://plugin.org.uk/timemachine/; homepage = http://plugin.org.uk/timemachine/;

View File

@ -24,6 +24,7 @@ stdenv.mkDerivation {
}; };
buildInputs = [ guile_1_8 qt4 makeWrapper ghostscriptX freetype ]; buildInputs = [ guile_1_8 qt4 makeWrapper ghostscriptX freetype ];
NIX_LDFLAGS = [ "-lz" ];
postInstall = "wrapProgram $out/bin/texmacs --suffix PATH : " + postInstall = "wrapProgram $out/bin/texmacs --suffix PATH : " +
(if ghostscriptX == null then "" else "${ghostscriptX}/bin:") + (if ghostscriptX == null then "" else "${ghostscriptX}/bin:") +
@ -33,12 +34,6 @@ stdenv.mkDerivation {
inherit (common) postPatch; inherit (common) postPatch;
postFixup = ''
bin="$out/libexec/TeXmacs/bin/texmacs.bin"
rpath=$(patchelf --print-rpath "$bin")
patchelf --set-rpath "$rpath:${zlib.out}/lib" "$bin"
'';
meta = common.meta // { meta = common.meta // {
maintainers = [ stdenv.lib.maintainers.roconnor ]; maintainers = [ stdenv.lib.maintainers.roconnor ];
platforms = stdenv.lib.platforms.gnu ++ stdenv.lib.platforms.linux; # arbitrary choice platforms = stdenv.lib.platforms.gnu ++ stdenv.lib.platforms.linux; # arbitrary choice

View File

@ -29,6 +29,10 @@ stdenv.mkDerivation rec {
gst_all_1.gst-plugins-base gst_all_1.gst-plugins-base
] ++ stdenv.lib.optional useUnrar unrar; ] ++ stdenv.lib.optional useUnrar unrar;
NIX_LDFLAGS = [
"-lpthread"
];
postPatch = ''patchShebangs version.sh''; postPatch = ''patchShebangs version.sh'';
postInstall = '' postInstall = ''

View File

@ -10,6 +10,13 @@ stdenv.mkDerivation {
buildInputs = [ cmake libpng libtiff libjpeg panotools libxml2 ]; buildInputs = [ cmake libpng libtiff libjpeg panotools libxml2 ];
patches = [
(fetchurl {
url = https://gitweb.gentoo.org/repo/gentoo.git/plain/media-gfx/autopano-sift-C/files/autopano-sift-C-2.5.1-lm.patch;
sha256 = "1bfcr5sps0ip9gl4jprji5jgf9wkczz6d2clsjjlbsy8r3ixi3lv";
})
];
meta = { meta = {
homepage = http://hugin.sourceforge.net/; homepage = http://hugin.sourceforge.net/;
description = "Implementation in C of the autopano-sift algorithm for automatically stitching panoramas"; description = "Implementation in C of the autopano-sift algorithm for automatically stitching panoramas";

View File

@ -26,7 +26,7 @@ in stdenv.mkDerivation rec {
nativeBuildInputs = [ cmake pkgconfig ]; nativeBuildInputs = [ cmake pkgconfig ];
NIX_LDFLAGS = "-llcms -ljpeg -lX11"; NIX_LDFLAGS = "-lm -llcms -ljpeg -lpng -lX11";
meta = { meta = {
homepage = http://www.cinepaint.org/; homepage = http://www.cinepaint.org/;

View File

@ -16,6 +16,9 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ scons pkgconfig wrapGAppsHook ]; nativeBuildInputs = [ scons pkgconfig wrapGAppsHook ];
buildInputs = [ glfw3 gtk3 libpng12 ]; buildInputs = [ glfw3 gtk3 libpng12 ];
NIX_LDFLAGS = [
"-lpthread"
];
buildPhase = '' buildPhase = ''
make release make release

View File

@ -18,6 +18,10 @@ stdenv.mkDerivation {
hardeningDisable = [ "format" ]; hardeningDisable = [ "format" ];
NIX_LDFLAGS = [
"-lm"
];
meta = with stdenv.lib; { meta = with stdenv.lib; {
description = "A fast image viewer"; description = "A fast image viewer";
homepage = http://gqview.sourceforge.net; homepage = http://gqview.sourceforge.net;

View File

@ -1,4 +1,4 @@
{ stdenv, fetchurl, dbus-glib, gtk2, pkgconfig, wordnet }: { stdenv, autoreconfHook, fetchurl, dbus-glib, gtk2, pkgconfig, wordnet }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "artha-${version}"; name = "artha-${version}";
@ -9,9 +9,13 @@ stdenv.mkDerivation rec {
sha256 = "0qr4ihl7ma3cq82xi1fpzvf74mm9vsg0j035xvmcp3r6rmw2fycx"; sha256 = "0qr4ihl7ma3cq82xi1fpzvf74mm9vsg0j035xvmcp3r6rmw2fycx";
}; };
nativeBuildInputs = [ pkgconfig ]; nativeBuildInputs = [ autoreconfHook pkgconfig ];
buildInputs = [ dbus-glib gtk2 wordnet ]; buildInputs = [ dbus-glib gtk2 wordnet ];
patches = [
./gio-underlink.patch
];
meta = with stdenv.lib; { meta = with stdenv.lib; {
description = "An offline thesaurus based on WordNet"; description = "An offline thesaurus based on WordNet";
homepage = http://artha.sourceforge.net; homepage = http://artha.sourceforge.net;

View File

@ -0,0 +1,13 @@
diff --git a/src/Makefile.am b/src/Makefile.am
index 0236d72..bcc1182 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -38,7 +38,7 @@ artha_LDADD = libwni.a $(WORDNET_LIB)
if POSIX
AM_CFLAGS += @libdbus_CFLAGS@
-artha_LDADD += -lX11 -ldbus-1 -ldbus-glib-1 -lgtk-x11-2.0 \
+artha_LDADD += -lX11 -ldbus-1 -ldbus-glib-1 -lgio-2.0 -lgtk-x11-2.0 \
-lgdk-x11-2.0 -lgmodule-2.0 -lgobject-2.0 -lglib-2.0
else
artha_LDADD += @GTK_LIBS@

View File

@ -50,6 +50,10 @@ stdenv.mkDerivation rec {
Mako cheetah numpy scipy matplotlib pyqt4 pygtk wxPython pyopengl Mako cheetah numpy scipy matplotlib pyqt4 pygtk wxPython pyopengl
]; ];
NIX_LDFLAGS = [
"-lpthread"
];
enableParallelBuilding = true; enableParallelBuilding = true;
postPatch = '' postPatch = ''

View File

@ -26,6 +26,9 @@ in stdenv.mkDerivation rec {
qtconnectivity qtconnectivity
]; ];
nativeBuildInputs = [ flex makeWrapper qmake yacc ]; nativeBuildInputs = [ flex makeWrapper qmake yacc ];
NIX_LDFLAGS = [
"-lz"
];
preConfigure = '' preConfigure = ''
cp src/gcconfig.pri.in src/gcconfig.pri cp src/gcconfig.pri.in src/gcconfig.pri
cp qwt/qwtconfig.pri.in qwt/qwtconfig.pri cp qwt/qwtconfig.pri.in qwt/qwtconfig.pri

View File

@ -104,6 +104,10 @@ stdenv.mkDerivation rec {
cmakeFlags = [ "-DCMAKE_C_FLAGS=-I${src}/include_mod" ]; cmakeFlags = [ "-DCMAKE_C_FLAGS=-I${src}/include_mod" ];
NIX_LDFLAGS = [
"-lpthread"
];
installPhase = '' installPhase = ''
install -D -m 755 k2pdfopt $out/bin/k2pdfopt install -D -m 755 k2pdfopt $out/bin/k2pdfopt
''; '';

View File

@ -11,6 +11,7 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ pkgconfig ]; nativeBuildInputs = [ pkgconfig ];
buildInputs = [ gettext gtk2 gconf curl libexif sqlite libxml2 ]; buildInputs = [ gettext gtk2 gconf curl libexif sqlite libxml2 ];
NIX_LDFLAGS = [ "-lm" ];
# bogus includes fail with newer library version # bogus includes fail with newer library version
postPatch = '' postPatch = ''

View File

@ -21,6 +21,7 @@ stdenv.mkDerivation rec {
mkdir .bin mkdir .bin
ln -s ${qt4}/bin/moc .bin/moc-qt4 ln -s ${qt4}/bin/moc .bin/moc-qt4
addToSearchPath PATH .bin addToSearchPath PATH .bin
sed -i -e "s@LD=\$_cc@LD=\$_cxx@" configure
''; '';
meta = with stdenv.lib; { meta = with stdenv.lib; {

View File

@ -16,6 +16,7 @@ stdenv.mkDerivation {
patches = [ ./conference.patch ]; patches = [ ./conference.patch ];
buildInputs = [ cmake lame id3lib libvorbis qt4 libogg ]; buildInputs = [ cmake lame id3lib libvorbis qt4 libogg ];
NIX_LDFLAGS = [ "-lvorbis" ];
meta = { meta = {
homepage = http://atdot.ch/scr/; homepage = http://atdot.ch/scr/;

View File

@ -12,7 +12,10 @@ stdenv.mkDerivation {
++ stdenv.lib.optional (stdenv.hostPlatform == stdenv.buildPlatform) podofo ++ stdenv.lib.optional (stdenv.hostPlatform == stdenv.buildPlatform) podofo
++ stdenv.lib.optional (!stdenv.isLinux) libiconv; ++ stdenv.lib.optional (!stdenv.isLinux) libiconv;
configurePhase = stdenv.lib.optionalString (!stdenv.isLinux) '' configurePhase = ''
substituteInPlace Makefile \
--replace '$(CC) $(CFLAGS) $(LDFLAGS)' '$(CXX) $(CFLAGS) $(LDFLAGS)'
'' + stdenv.lib.optionalString (!stdenv.isLinux) ''
sed 's/#EXTRA/EXTRA/' -i Makefile sed 's/#EXTRA/EXTRA/' -i Makefile
'' + stdenv.lib.optionalString (stdenv.hostPlatform != stdenv.buildPlatform) '' '' + stdenv.lib.optionalString (stdenv.hostPlatform != stdenv.buildPlatform) ''
sed 's/^PDF/#PDF/' -i Makefile sed 's/^PDF/#PDF/' -i Makefile

View File

@ -14,6 +14,13 @@ stdenv.mkDerivation rec {
NIX_CFLAGS_COMPILE = "-include ${libGLU_combined}/include/GL/glu.h"; NIX_CFLAGS_COMPILE = "-include ${libGLU_combined}/include/GL/glu.h";
patches = [
(fetchurl {
url = https://data.gpo.zugaina.org/fusion809/sci-chemistry/avogadro/files/avogadro-1.1.0-xlibs.patch;
sha256 = "1p113v19z3zwr9gxj2k599f8p97a8rwm93pa4amqvd0snn31mw0k";
})
];
meta = { meta = {
description = "Molecule editor and visualizer"; description = "Molecule editor and visualizer";
maintainers = [ ]; maintainers = [ ];

View File

@ -30,7 +30,7 @@ stdenv.mkDerivation rec {
makeFlags=[ makeFlags=[
"AM_LDFLAGS=" "AM_LDFLAGS="
]; ];
NIX_LDFLAGS="-lpython${python2.majorVersion} -lperl"; NIX_LDFLAGS="-lpython${python2.majorVersion} -lperl -ldl -lGL";
preConfigure='' preConfigure=''
export NIX_LDFLAGS="$NIX_LDFLAGS -L$(dirname "$(find ${perl} -name libperl.so)")" export NIX_LDFLAGS="$NIX_LDFLAGS -L$(dirname "$(find ${perl} -name libperl.so)")"
export NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE export NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE

View File

@ -22,6 +22,10 @@ stdenv.mkDerivation {
"SVN_INCLUDE=${subversion.dev}/include/subversion-1" "SVN_INCLUDE=${subversion.dev}/include/subversion-1"
]; ];
NIX_LDFLAGS = [
"-lsvn_fs-1"
];
meta = with stdenv.lib; { meta = with stdenv.lib; {
homepage = https://github.com/svn-all-fast-export/svn2git; homepage = https://github.com/svn-all-fast-export/svn2git;
description = "A fast-import based converter for an svn repo to git repos"; description = "A fast-import based converter for an svn repo to git repos";

View File

@ -48,6 +48,12 @@ stdenv.mkDerivation rec {
hardeningDisable = [ "bindnow" "relro" ]; hardeningDisable = [ "bindnow" "relro" ];
# this is fixed upstream though not yet in an officially released version,
# should be fine remove on next release (if one ever happens)
NIX_LDFLAGS = [
"-lpthread"
];
postInstall = "ln -s $out/bin/aegisub-* $out/bin/aegisub"; postInstall = "ln -s $out/bin/aegisub-* $out/bin/aegisub";
meta = { meta = {

View File

@ -71,6 +71,11 @@ stdenv.mkDerivation {
hardeningDisable = [ "format" ]; hardeningDisable = [ "format" ];
NIX_LDFLAGS = [
"-lavcodec"
"-lavutil"
];
patches = [ ./kino-1.3.4-v4l1.patch ./kino-1.3.4-libav-0.7.patch ./kino-1.3.4-libav-0.8.patch ]; #./kino-1.3.4-libavcodec-pkg-config.patch ]; patches = [ ./kino-1.3.4-v4l1.patch ./kino-1.3.4-libav-0.7.patch ./kino-1.3.4-libav-0.8.patch ]; #./kino-1.3.4-libavcodec-pkg-config.patch ];
postInstall = " postInstall = "

View File

@ -13,6 +13,7 @@ in stdenv.mkDerivation {
nativeBuildInputs = [ pkgconfig ]; nativeBuildInputs = [ pkgconfig ];
buildInputs = [ libxml2 gtk shared-mime-info hicolor-icon-theme libSM ]; buildInputs = [ libxml2 gtk shared-mime-info hicolor-icon-theme libSM ];
NIX_LDFLAGS = [ "-ldl" "-lm" ];
patches = [ patches = [
./rox-filer-2.11-in-source-build.patch ./rox-filer-2.11-in-source-build.patch

View File

@ -14,6 +14,10 @@ stdenv.mkDerivation rec {
configureOptions = [ "--with-gtk2" ]; configureOptions = [ "--with-gtk2" ];
NIX_LDFLAGS = [
"-ldl"
];
meta = { meta = {
description = "gtk-server for interpreted GUI programming"; description = "gtk-server for interpreted GUI programming";
homepage = http://www.gtk-server.org/; homepage = http://www.gtk-server.org/;

View File

@ -13,6 +13,7 @@ stdenv.mkDerivation rec {
buildInputs = [ bison flex makeWrapper ]; buildInputs = [ bison flex makeWrapper ];
propagatedBuildInputs = [ llvm gmp mpfr readline ]; propagatedBuildInputs = [ llvm gmp mpfr readline ];
NIX_LDFLAGS = [ "-lLLVMJIT" ];
postPatch = '' postPatch = ''
for f in expr.cc matcher.cc printer.cc symtable.cc parserdefs.hh; do for f in expr.cc matcher.cc printer.cc symtable.cc parserdefs.hh; do

View File

@ -8,6 +8,10 @@ stdenv.mkDerivation rec {
sha256 = "0czccp4fcpf2ykp16xcrzdfmnircz1ynhls334q374xknd5747d2"; sha256 = "0czccp4fcpf2ykp16xcrzdfmnircz1ynhls334q374xknd5747d2";
}; };
configureFlags = [
"--enable-shared"
];
# fails 1 out of 1 tests with "BAD GLOBAL SYMBOLS" on i686 # fails 1 out of 1 tests with "BAD GLOBAL SYMBOLS" on i686
# which can also be fixed with # which can also be fixed with
# hardeningDisable = stdenv.lib.optional stdenv.isi686 "pic"; # hardeningDisable = stdenv.lib.optional stdenv.isi686 "pic";

View File

@ -17,7 +17,11 @@ stdenv.mkDerivation rec {
unzip cmake libGLU_combined freeglut libX11 xproto inputproto libXi unzip cmake libGLU_combined freeglut libX11 xproto inputproto libXi
]; ];
cmakeFlags = [ "-DBOX2D_INSTALL=ON" "-DBOX2D_BUILD_SHARED=ON" ]; cmakeFlags = [
"-DBOX2D_INSTALL=ON"
"-DBOX2D_BUILD_SHARED=ON"
"-DBOX2D_BUILD_EXAMPLES=OFF"
];
prePatch = '' prePatch = ''
substituteInPlace Box2D/Common/b2Settings.h \ substituteInPlace Box2D/Common/b2Settings.h \

View File

@ -11,6 +11,9 @@ stdenv.mkDerivation rec {
buildInputs = [ bison ]; buildInputs = [ bison ];
patches = [ ./gcc-4.3.3-fixes.patch ]; patches = [ ./gcc-4.3.3-fixes.patch ];
configureFlags = [ "CFLAGS=-O3" "CXXFLAGS=-O3" ]; configureFlags = [ "CFLAGS=-O3" "CXXFLAGS=-O3" ];
NIX_LDFLAGS = [
"-lm"
];
doCheck = true; doCheck = true;
meta = { meta = {

View File

@ -23,6 +23,10 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ autoreconfHook pkgconfig ]; nativeBuildInputs = [ autoreconfHook pkgconfig ];
NIX_LDFLAGS = [
"-lbluetooth"
];
postInstall = '' postInstall = ''
# Some programs (for example, cabal-install) have problems with the double 0 # Some programs (for example, cabal-install) have problems with the double 0
sed -i -e "s/0.6.00/0.6.0/" $out/lib/pkgconfig/cwiid.pc sed -i -e "s/0.6.00/0.6.0/" $out/lib/pkgconfig/cwiid.pc

View File

@ -34,7 +34,7 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ pkgconfig ]; nativeBuildInputs = [ pkgconfig ];
buildInputs = [ dbus glib expat ]; buildInputs = [ dbus glib expat ];
configureFlags = [ "--disable-ecore" ]; configureFlags = [ "--disable-ecore" "--disable-tests" ];
meta = with stdenv.lib; { meta = with stdenv.lib; {
homepage = http://dbus-cplusplus.sourceforge.net; homepage = http://dbus-cplusplus.sourceforge.net;

View File

@ -45,6 +45,10 @@ stdenv.mkDerivation rec {
doCheck = false; # TODO: some issues with temporary files doCheck = false; # TODO: some issues with temporary files
NIX_LDFLAGS = [
"-lpthread"
];
enableParallelBuilding = true; enableParallelBuilding = true;
configureFlags = [ configureFlags = [

View File

@ -39,4 +39,6 @@ stdenv.mkDerivation rec {
libintl libintl
] ++ lib.optionals stdenv.isDarwin (with darwin.apple_sdk.frameworks; ] ++ lib.optionals stdenv.isDarwin (with darwin.apple_sdk.frameworks;
[ IOKit CoreFoundation DiskArbitration ]); [ IOKit CoreFoundation DiskArbitration ]);
NIX_LDFLAGS = [ "-lm" ];
} }

View File

@ -11,6 +11,9 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ pkgconfig ]; nativeBuildInputs = [ pkgconfig ];
buildInputs = [ libX11 libXi libXtst xextproto ]; buildInputs = [ libX11 libXi libXtst xextproto ];
NIX_LDFLAGS = [
"-lX11"
];
meta = with stdenv.lib; { meta = with stdenv.lib; {
description = "X virtual keyboard library"; description = "X virtual keyboard library";

View File

@ -6,6 +6,9 @@ stdenv.mkDerivation rec {
buildInputs = [ libXft libICE pango libjpeg ]; buildInputs = [ libXft libICE pango libjpeg ];
propagatedBuildInputs = [ libX11 libXext libpng ]; propagatedBuildInputs = [ libX11 libXext libpng ];
NIX_LDFLAGS = [
"-lX11"
];
src = fetchurl { src = fetchurl {
url = "https://downloads.yoctoproject.org/releases/matchbox/libmatchbox/${version}/libmatchbox-${version}.tar.bz2"; url = "https://downloads.yoctoproject.org/releases/matchbox/libmatchbox/${version}/libmatchbox-${version}.tar.bz2";

View File

@ -25,6 +25,7 @@ buildPythonPackage rec {
preConfigure = '' preConfigure = ''
chmod +x ./deps/pjsip/configure ./deps/pjsip/aconfigure chmod +x ./deps/pjsip/configure ./deps/pjsip/aconfigure
export LD=$CC
''; '';
nativeBuildInputs = [ pkgs.pkgconfig ]; nativeBuildInputs = [ pkgs.pkgconfig ];

View File

@ -16,6 +16,10 @@ mkDerivation rec {
nativeBuildInputs = [ cmake antlr qttools ]; nativeBuildInputs = [ cmake antlr qttools ];
NIX_LDFLAGS = [
"-lQt5PrintSupport"
];
enableParallelBuilding = true; enableParallelBuilding = true;
# We have to patch out Test and PrintSupport to make this work with Qt 5.9 # We have to patch out Test and PrintSupport to make this work with Qt 5.9

View File

@ -11,6 +11,10 @@ stdenv.mkDerivation rec {
buildInputs = [ makeWrapper SDL SDL_image ]; buildInputs = [ makeWrapper SDL SDL_image ];
NIX_LDFLAGS = [
"-lm"
];
installPhase = '' installPhase = ''
ls -l ls -l
mkdir -p $out/bin mkdir -p $out/bin

View File

@ -21,6 +21,10 @@ stdenv.mkDerivation {
NIX_CFLAGS_COMPILE = [ "-fpermissive" ]; NIX_CFLAGS_COMPILE = [ "-fpermissive" ];
NIX_LDFLAGS = [
"-ldl"
];
meta = { meta = {
homepage = http://www.bergo.eng.br/eboard/; homepage = http://www.bergo.eng.br/eboard/;
description = "Chess interface for Unix-like systems"; description = "Chess interface for Unix-like systems";

View File

@ -44,6 +44,10 @@ stdenv.mkDerivation rec {
''; '';
*/ */
NIX_LDFLAGS = [
"-lm"
];
meta = { meta = {
description = "3D dungeon crawling adventure"; description = "3D dungeon crawling adventure";

View File

@ -41,6 +41,10 @@ stdenv.mkDerivation rec {
sconsFlags+=" DATADIR=$out/share/globulation2/glob2" sconsFlags+=" DATADIR=$out/share/globulation2/glob2"
''; '';
NIX_LDFLAGS = [
"-lboost_system"
];
meta = with stdenv.lib; { meta = with stdenv.lib; {
description = "RTS without micromanagement"; description = "RTS without micromanagement";
maintainers = with maintainers; [ raskin ]; maintainers = with maintainers; [ raskin ];

View File

@ -9,6 +9,10 @@ stdenv.mkDerivation rec {
}; };
buildInputs = [ SDL SDL_image SDL_mixer ]; buildInputs = [ SDL SDL_image SDL_mixer ];
NIX_LDFLAGS = [
"-lm"
];
meta = with stdenv.lib; { meta = with stdenv.lib; {
homepage = "https://jump.gnu.sinusoid.es/"; homepage = "https://jump.gnu.sinusoid.es/";
description = "A clone of the simple yet addictive game Xjump"; description = "A clone of the simple yet addictive game Xjump";

View File

@ -15,6 +15,9 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ pkgconfig ]; nativeBuildInputs = [ pkgconfig ];
buildInputs = [ cmake ogre cegui boost sfml openal ois ]; buildInputs = [ cmake ogre cegui boost sfml openal ois ];
NIX_LDFLAGS = [
"-lpthread"
];
meta = with stdenv.lib; { meta = with stdenv.lib; {
description = "An open source, real time strategy game sharing game elements with the Dungeon Keeper series and Evil Genius."; description = "An open source, real time strategy game sharing game elements with the Dungeon Keeper series and Evil Genius.";

View File

@ -34,6 +34,7 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ pkgconfig ]; nativeBuildInputs = [ pkgconfig ];
buildInputs = [ dbus libcap ]; buildInputs = [ dbus libcap ];
NIX_LDFLAGS = [ "-lrt" ];
meta = with stdenv.lib; { meta = with stdenv.lib; {
homepage = http://0pointer.de/blog/projects/rtkit; homepage = http://0pointer.de/blog/projects/rtkit;

View File

@ -16,6 +16,10 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ autoreconfHook pkgconfig ]; nativeBuildInputs = [ autoreconfHook pkgconfig ];
buildInputs = [ libzip boost wt3 libconfig ]; buildInputs = [ libzip boost wt3 libconfig ];
NIX_LDFLAGS = [
"-lpthread"
];
postInstall = '' postInstall = ''
ln -s ${wt3}/share/Wt/resources $out/share/fileshelter/docroot/resources ln -s ${wt3}/share/Wt/resources $out/share/fileshelter/docroot/resources
''; '';

View File

@ -16,7 +16,7 @@ stdenv.mkDerivation {
''; '';
NIX_CFLAGS_COMPILE="-I ${subversion.dev}/include/subversion-1"; NIX_CFLAGS_COMPILE="-I ${subversion.dev}/include/subversion-1";
NIX_LDFLAGS="-lsvn_client-1"; NIX_LDFLAGS="-lsvn_client-1 -lsvn_subr-1";
meta = { meta = {
description = "FUSE filesystem for accessing Subversion repositories"; description = "FUSE filesystem for accessing Subversion repositories";

View File

@ -15,6 +15,7 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ autoreconfHook intltool pkgconfig wrapGAppsHook ]; nativeBuildInputs = [ autoreconfHook intltool pkgconfig wrapGAppsHook ];
buildInputs = [ gtk2 hicolor-icon-theme ]; buildInputs = [ gtk2 hicolor-icon-theme ];
NIX_LDFLAGS = [ "-lgio-2.0" ];
preFixup = '' preFixup = ''
# Need which and xdotool on path to fix auto-pasting. # Need which and xdotool on path to fix auto-pasting.

View File

@ -7,6 +7,7 @@ stdenv.mkDerivation rec {
}; };
nativeBuildInputs = [ pkgconfig ]; nativeBuildInputs = [ pkgconfig ];
buildInputs = [ libX11 libXtst qt4 ]; buildInputs = [ libX11 libXtst qt4 ];
NIX_LDFLAGS = [ "-lX11" ];
patchPhase = '' patchPhase = ''
cd src cd src
substituteInPlace config --replace /bin/bash /bin/sh substituteInPlace config --replace /bin/bash /bin/sh

View File

@ -54,7 +54,7 @@ in stdenv.mkDerivation {
nativeBuildInputs = [ autoreconfHook ]; nativeBuildInputs = [ autoreconfHook ];
buildInputs = [ glib pcap ]; buildInputs = [ glib pcap ];
NIX_CFLAGS_LINK = "-lglib-2.0"; NIX_CFLAGS_LINK = "-lglib-2.0 -lpthread";
postPatch = '' postPatch = ''
for patch in debian/patches/*.patch; do for patch in debian/patches/*.patch; do
patch < $patch patch < $patch

View File

@ -36,6 +36,8 @@ stdenv.mkDerivation {
buildInputs = stdenv.lib.optional tlsSupport openssl; buildInputs = stdenv.lib.optional tlsSupport openssl;
NIX_LDFLAGS = stdenv.lib.optional tlsSupport [ "-lcrypto" ];
meta = with stdenv.lib; { meta = with stdenv.lib; {
platforms = platforms.linux; platforms = platforms.linux;
license = licenses.gpl2; license = licenses.gpl2;

View File

@ -15,6 +15,10 @@ stdenv.mkDerivation rec {
hardeningDisable = [ "format" ]; hardeningDisable = [ "format" ];
NIX_LDFLAGS = [
"-lm"
];
meta = with stdenv.lib; { meta = with stdenv.lib; {
homepage = http://gdmap.sourceforge.net; homepage = http://gdmap.sourceforge.net;
description = "Recursive rectangle map of disk usage"; description = "Recursive rectangle map of disk usage";

View File

@ -9,6 +9,10 @@ stdenv.mkDerivation {
buildInputs = [ libmtsupport libfacet libbtree multitrandata ]; buildInputs = [ libmtsupport libfacet libbtree multitrandata ];
NIX_LDFLAGS = [
"-lbtree"
];
patchPhase = '' patchPhase = ''
sed -i -e 's@\$(DESTDIR)/usr@'$out'@' \ sed -i -e 's@\$(DESTDIR)/usr@'$out'@' \
-e 's@/usr/include/mt/support@${libmtsupport}/include/mt/support@' \ -e 's@/usr/include/mt/support@${libmtsupport}/include/mt/support@' \

View File

@ -14,7 +14,7 @@ stdenv.mkDerivation rec {
configurePhase = '' configurePhase = ''
mkdir -p $out/{bin,man/man1} mkdir -p $out/{bin,man/man1}
makeFlags="PREFIX=$out" makeFlags="PREFIX=$out CC=$CXX"
''; '';
meta = { meta = {