Merge older staging

There are some regressions, but not that many and I want
the security update of openssl fast.

+788 -614
+11 -4
doc/stdenv.xml
··· 251 252 <varlistentry> 253 <term><varname>enableParallelBuilding</varname></term> 254 - <listitem><para>If set, <literal>stdenv</literal> will pass specific 255 - flags to <literal>make</literal> and other build tools to enable 256 - parallel building with up to <literal>build-cores</literal> 257 - workers.</para></listitem> 258 </varlistentry> 259 260 <varlistentry>
··· 251 252 <varlistentry> 253 <term><varname>enableParallelBuilding</varname></term> 254 + <listitem> 255 + <para>If set to <literal>true</literal>, <literal>stdenv</literal> will 256 + pass specific flags to <literal>make</literal> and other build tools to 257 + enable parallel building with up to <literal>build-cores</literal> 258 + workers.</para> 259 + 260 + <para>Unless set to <literal>false</literal>, some build systems with good 261 + support for parallel building including <literal>cmake</literal>, 262 + <literal>meson</literal>, and <literal>qmake</literal> will set it to 263 + <literal>true</literal>.</para> 264 + </listitem> 265 </varlistentry> 266 267 <varlistentry>
+1 -1
nixos/tests/printing.nix
··· 39 $client->waitForUnit("cups.service"); 40 $client->sleep(10); # wait until cups is fully initialized 41 $client->succeed("lpstat -r") =~ /scheduler is running/ or die; 42 - $client->succeed("lpstat -H") =~ "/var/run/cups/cups.sock" or die; 43 $client->succeed("curl --fail http://localhost:631/"); 44 $client->succeed("curl --fail http://server:631/"); 45 $server->fail("curl --fail --connect-timeout 2 http://client:631/");
··· 39 $client->waitForUnit("cups.service"); 40 $client->sleep(10); # wait until cups is fully initialized 41 $client->succeed("lpstat -r") =~ /scheduler is running/ or die; 42 + $client->succeed("lpstat -H") =~ "localhost:631" or die; 43 $client->succeed("curl --fail http://localhost:631/"); 44 $client->succeed("curl --fail http://server:631/"); 45 $server->fail("curl --fail --connect-timeout 2 http://client:631/");
+4
pkgs/applications/altcoins/memorycoin.nix
··· 31 then "install -D bitcoin-qt $out/bin/memorycoin-qt" 32 else "install -D bitcoind $out/bin/memorycoind"; 33 34 meta = { 35 description = "Peer-to-peer, CPU-based electronic cash system"; 36 longDescription= ''
··· 31 then "install -D bitcoin-qt $out/bin/memorycoin-qt" 32 else "install -D bitcoind $out/bin/memorycoind"; 33 34 + # `make build/version.o`: 35 + # make: *** No rule to make target 'build/build.h', needed by 'build/version.o'. Stop. 36 + enableParallelBuilding = false; 37 + 38 meta = { 39 description = "Peer-to-peer, CPU-based electronic cash system"; 40 longDescription= ''
+4
pkgs/applications/altcoins/primecoin.nix
··· 31 then "install -D bitcoin-qt $out/bin/primecoin-qt" 32 else "install -D bitcoind $out/bin/primecoind"; 33 34 meta = { 35 description = "A new type cryptocurrency which is proof-of-work based on searching for prime numbers"; 36 longDescription= ''
··· 31 then "install -D bitcoin-qt $out/bin/primecoin-qt" 32 else "install -D bitcoind $out/bin/primecoind"; 33 34 + # `make build/version.o`: 35 + # make: *** No rule to make target 'build/build.h', needed by 'build/version.o'. Stop. 36 + enableParallelBuilding = false; 37 + 38 meta = { 39 description = "A new type cryptocurrency which is proof-of-work based on searching for prime numbers"; 40 longDescription= ''
+2 -1
pkgs/applications/gis/qgis/default.nix
··· 14 15 nativeBuildInputs = [ cmake makeWrapper ]; 16 17 # fatal error: ui_qgsdelimitedtextsourceselectbase.h: No such file or directory 18 - #enableParallelBuilding = true; 19 20 # To handle the lack of 'local' RPATH; required, as they call one of 21 # their built binaries requiring their libs, in the build process.
··· 14 15 nativeBuildInputs = [ cmake makeWrapper ]; 16 17 + # `make -f src/providers/wms/CMakeFiles/wmsprovider_a.dir/build.make src/providers/wms/CMakeFiles/wmsprovider_a.dir/qgswmssourceselect.cpp.o`: 18 # fatal error: ui_qgsdelimitedtextsourceselectbase.h: No such file or directory 19 + enableParallelBuilding = false; 20 21 # To handle the lack of 'local' RPATH; required, as they call one of 22 # their built binaries requiring their libs, in the build process.
+5
pkgs/applications/graphics/awesomebump/default.nix
··· 15 name = "qtnproperty"; 16 inherit src; 17 sourceRoot = "AwesomeBump/Sources/utils/QtnProperty"; 18 buildInputs = [ qtscript qtbase qtdeclarative ]; 19 nativeBuildInputs = [ qmake flex bison ]; 20 postInstall = '' ··· 45 makeWrapper $d/AwesomeBump $out/bin/AwesomeBump \ 46 --run "cd $d" 47 ''; 48 49 meta = { 50 homepage = https://github.com/kmkolasinski/AwesomeBump;
··· 15 name = "qtnproperty"; 16 inherit src; 17 sourceRoot = "AwesomeBump/Sources/utils/QtnProperty"; 18 + patches = [ ./qtnproperty-parallel-building.patch ]; 19 buildInputs = [ qtscript qtbase qtdeclarative ]; 20 nativeBuildInputs = [ qmake flex bison ]; 21 postInstall = '' ··· 46 makeWrapper $d/AwesomeBump $out/bin/AwesomeBump \ 47 --run "cd $d" 48 ''; 49 + 50 + # $ cd Sources; qmake; make ../workdir/linux-g++-dgb-gl4/obj/glwidget.o 51 + # fatal error: properties/ImageProperties.peg.h: No such file or directory 52 + enableParallelBuilding = false; 53 54 meta = { 55 homepage = https://github.com/kmkolasinski/AwesomeBump;
+9
pkgs/applications/graphics/awesomebump/qtnproperty-parallel-building.patch
···
··· 1 + --- a/PEG/Flex.pri 2 + +++ b/PEG/Flex.pri 3 + @@ -1,5 +1,6 @@ 4 + flex.name = Flex ${QMAKE_FILE_IN} 5 + flex.input = FLEX_SOURCES 6 + +flex.depends = ${QMAKE_FILE_PATH}/${QMAKE_FILE_BASE}.parser.cpp 7 + flex.output = ${QMAKE_FILE_PATH}/${QMAKE_FILE_BASE}.lexer.cpp 8 + 9 + win32:flex.commands = win_flex --wincompat -o ${QMAKE_FILE_PATH}/${QMAKE_FILE_BASE}.lexer.cpp ${QMAKE_FILE_IN}
+4
pkgs/applications/misc/golden-cheetah/default.nix
··· 30 31 runHook postInstall 32 ''; 33 meta = { 34 description = "Performance software for cyclists, runners and triathletes"; 35 platforms = stdenv.lib.platforms.linux;
··· 30 31 runHook postInstall 32 ''; 33 + 34 + # RCC: Error in 'Resources/application.qrc': Cannot find file 'translations/gc_fr.qm' 35 + enableParallelBuilding = false; 36 + 37 meta = { 38 description = "Performance software for cyclists, runners and triathletes"; 39 platforms = stdenv.lib.platforms.linux;
+2 -1
pkgs/applications/networking/instant-messengers/dino/default.nix
··· 1 { stdenv, fetchFromGitHub 2 - , vala, cmake, wrapGAppsHook, pkgconfig, gettext 3 , gobjectIntrospection, gnome3, glib, gdk_pixbuf, gtk3, glib_networking 4 , xorg, libXdmcp, libxkbcommon 5 , libnotify, libsoup ··· 26 nativeBuildInputs = [ 27 vala 28 cmake 29 pkgconfig 30 wrapGAppsHook 31 ];
··· 1 { stdenv, fetchFromGitHub 2 + , vala, cmake, ninja, wrapGAppsHook, pkgconfig, gettext 3 , gobjectIntrospection, gnome3, glib, gdk_pixbuf, gtk3, glib_networking 4 , xorg, libXdmcp, libxkbcommon 5 , libnotify, libsoup ··· 26 nativeBuildInputs = [ 27 vala 28 cmake 29 + ninja 30 pkgconfig 31 wrapGAppsHook 32 ];
+3
pkgs/applications/networking/instant-messengers/ricochet/default.nix
··· 46 cp icons/ricochet.png $out/share/pixmaps/ricochet.png 47 ''; 48 49 meta = with stdenv.lib; { 50 description = "Anonymous peer-to-peer instant messaging"; 51 homepage = https://ricochet.im;
··· 46 cp icons/ricochet.png $out/share/pixmaps/ricochet.png 47 ''; 48 49 + # RCC: Error in 'translation/embedded.qrc': Cannot find file 'ricochet_en.qm' 50 + enableParallelBuilding = false; 51 + 52 meta = with stdenv.lib; { 53 description = "Anonymous peer-to-peer instant messaging"; 54 homepage = https://ricochet.im;
+4
pkgs/applications/networking/ostinato/default.nix
··· 54 EOF 55 ''; 56 57 meta = with stdenv.lib; { 58 description = "A packet traffic generator and analyzer"; 59 homepage = http://ostinato.org;
··· 54 EOF 55 ''; 56 57 + # `cd common; qmake ostproto.pro; make pdmlreader.o`: 58 + # pdmlprotocol.h:23:25: fatal error: protocol.pb.h: No such file or directory 59 + enableParallelBuilding = false; 60 + 61 meta = with stdenv.lib; { 62 description = "A packet traffic generator and analyzer"; 63 homepage = http://ostinato.org;
+4
pkgs/applications/science/logic/stp/default.nix
··· 23 ) 24 ''; 25 26 meta = with stdenv.lib; { 27 description = "Simple Theorem Prover"; 28 maintainers = with maintainers; [ mornfall ];
··· 23 ) 24 ''; 25 26 + # `make -f lib/Interface/CMakeFiles/cppinterface.dir/build.make lib/Interface/CMakeFiles/cppinterface.dir/cpp_interface.cpp.o`: 27 + # include/stp/AST/UsefulDefs.h:41:29: fatal error: stp/AST/ASTKind.h: No such file or directory 28 + enableParallelBuilding = false; 29 + 30 meta = with stdenv.lib; { 31 description = "Simple Theorem Prover"; 32 maintainers = with maintainers; [ mornfall ];
+7 -1
pkgs/applications/science/machine-learning/shogun/default.nix
··· 1 - { stdenv, lib, fetchFromGitHub, ccache, cmake, ctags, swig 2 # data, compression 3 , bzip2, curl, hdf5, json_c, lzma, lzo, protobuf, snappy 4 # maths ··· 25 rev = pname + "_" + version; 26 sha256 = "0f2zwzvn5apvwypkfkq371xp7c5bdb4g1fwqfh8c2d57ysjxhmgf"; 27 fetchSubmodules = true; 28 }; 29 30 CCACHE_DIR=".ccache";
··· 1 + { stdenv, lib, fetchFromGitHub, fetchpatch, ccache, cmake, ctags, swig 2 # data, compression 3 , bzip2, curl, hdf5, json_c, lzma, lzo, protobuf, snappy 4 # maths ··· 25 rev = pname + "_" + version; 26 sha256 = "0f2zwzvn5apvwypkfkq371xp7c5bdb4g1fwqfh8c2d57ysjxhmgf"; 27 fetchSubmodules = true; 28 + }; 29 + 30 + patches = fetchpatch { 31 + name = "Fix-meta-example-parser-bug-in-parallel-builds.patch"; 32 + url = "https://github.com/shogun-toolbox/shogun/commit/ecd6a8f11ac52748e89d27c7fab7f43c1de39f05.patch"; 33 + sha256 = "1hrwwrj78sxhwcvgaz7n4kvh5y9snfcc4jf5xpgji5hjymnl311n"; 34 }; 35 36 CCACHE_DIR=".ccache";
+3
pkgs/applications/version-management/guitone/default.nix
··· 16 branch = "net.venge.monotone.guitone"; 17 }; 18 19 nativeBuildInputs = [ pkgconfig ]; 20 buildInputs = [ qt4 qmake4Hook graphviz ]; 21 ··· 24 meta = { 25 description = "Qt4 based GUI for monotone"; 26 homepage = http://guitone.thomaskeller.biz; 27 inherit (qt4.meta) platforms; 28 }; 29 }
··· 16 branch = "net.venge.monotone.guitone"; 17 }; 18 19 + patches = [ ./parallel-building.patch ]; 20 + 21 nativeBuildInputs = [ pkgconfig ]; 22 buildInputs = [ qt4 qmake4Hook graphviz ]; 23 ··· 26 meta = { 27 description = "Qt4 based GUI for monotone"; 28 homepage = http://guitone.thomaskeller.biz; 29 + downloadPage = https://code.monotone.ca/p/guitone/; 30 inherit (qt4.meta) platforms; 31 }; 32 }
+7
pkgs/applications/version-management/guitone/parallel-building.patch
···
··· 1 + Without this `make tmp/AttributesView.o` fails with 2 + src/view/dialogs/AddEditAttribute.h:22:35: fatal error: ui_add_edit_attribute.h: No such file or directory 3 + --- a/guitone.pro 4 + +++ b/guitone.pro 5 + @@ -215 +215,2 @@ help.commands = @echo Available targets: $${QMAKE_EXTRA_TARGETS} 6 + QMAKE_EXTRA_TARGETS += help 7 + +CONFIG += depend_includepath
+3 -3
pkgs/desktops/gnome-3/apps/gedit/src.nix
··· 1 # Autogenerated by maintainers/scripts/gnome.sh update 2 3 fetchurl: { 4 - name = "gedit-3.22.0"; 5 6 src = fetchurl { 7 - url = mirror://gnome/sources/gedit/3.22/gedit-3.22.0.tar.xz; 8 - sha256 = "063b5a0b5dcc8f540f6e8c3ea1c22cf8a3a19edffc25315a1b6bc51d462b3f45"; 9 }; 10 }
··· 1 # Autogenerated by maintainers/scripts/gnome.sh update 2 3 fetchurl: { 4 + name = "gedit-3.22.1"; 5 6 src = fetchurl { 7 + url = mirror://gnome/sources/gedit/3.22/gedit-3.22.1.tar.xz; 8 + sha256 = "aa7bc3618fffa92fdb7daf2f57152e1eb7962e68561a9c92813d7bbb7fc9492b"; 9 }; 10 }
+1 -19
pkgs/desktops/gnome-3/apps/glade/default.nix
··· 1 - { stdenv, intltool, fetchurl, python, autoreconfHook 2 , pkgconfig, gtk3, glib, gobjectIntrospection 3 , wrapGAppsHook, itstool, libxml2, docbook_xsl 4 , gnome3, gdk_pixbuf, libxslt }: ··· 6 stdenv.mkDerivation rec { 7 inherit (import ./src.nix fetchurl) name src; 8 9 - propagatedUserEnvPkgs = [ gnome3.gnome_themes_standard ]; 10 - 11 nativeBuildInputs = [ 12 pkgconfig intltool itstool wrapGAppsHook docbook_xsl libxslt gobjectIntrospection 13 - # reconfiguration 14 - autoreconfHook gnome3.gnome_common gnome3.yelp_tools 15 ]; 16 buildInputs = [ gtk3 glib libxml2 python 17 gnome3.gsettings_desktop_schemas 18 gdk_pixbuf gnome3.defaultIconTheme ]; 19 20 enableParallelBuilding = true; 21 - 22 - patches = [ 23 - # https://bugzilla.gnome.org/show_bug.cgi?id=782161 24 - (fetchurl { 25 - url = https://bugzilla.gnome.org/attachment.cgi?id=351054; 26 - sha256 = "093wjjj40027pkqqnm14jb2dp2i2m8p1bayqx1lw18pq66c8fahn"; 27 - }) 28 - ]; 29 - 30 - preFixup = '' 31 - wrapProgram "$out/bin/glade" \ 32 - --set GDK_PIXBUF_MODULE_FILE "$GDK_PIXBUF_MODULE_FILE" \ 33 - --prefix XDG_DATA_DIRS : "${gnome3.gnome_themes_standard}/share:$XDG_ICON_DIRS:$GSETTINGS_SCHEMAS_PATH" 34 - ''; 35 36 meta = with stdenv.lib; { 37 homepage = https://wiki.gnome.org/Apps/Glade;
··· 1 + { stdenv, intltool, fetchurl, python 2 , pkgconfig, gtk3, glib, gobjectIntrospection 3 , wrapGAppsHook, itstool, libxml2, docbook_xsl 4 , gnome3, gdk_pixbuf, libxslt }: ··· 6 stdenv.mkDerivation rec { 7 inherit (import ./src.nix fetchurl) name src; 8 9 nativeBuildInputs = [ 10 pkgconfig intltool itstool wrapGAppsHook docbook_xsl libxslt gobjectIntrospection 11 ]; 12 buildInputs = [ gtk3 glib libxml2 python 13 gnome3.gsettings_desktop_schemas 14 gdk_pixbuf gnome3.defaultIconTheme ]; 15 16 enableParallelBuilding = true; 17 18 meta = with stdenv.lib; { 19 homepage = https://wiki.gnome.org/Apps/Glade;
+3 -3
pkgs/desktops/gnome-3/apps/glade/src.nix
··· 1 # Autogenerated by maintainers/scripts/gnome.sh update 2 3 fetchurl: { 4 - name = "glade-3.20.0"; 5 6 src = fetchurl { 7 - url = mirror://gnome/sources/glade/3.20/glade-3.20.0.tar.xz; 8 - sha256 = "82d96dca5dec40ee34e2f41d49c13b4ea50da8f32a3a49ca2da802ff14dc18fe"; 9 }; 10 }
··· 1 # Autogenerated by maintainers/scripts/gnome.sh update 2 3 fetchurl: { 4 + name = "glade-3.20.2"; 5 6 src = fetchurl { 7 + url = mirror://gnome/sources/glade/3.20/glade-3.20.2.tar.xz; 8 + sha256 = "07d1545570951aeded20e9fdc6d3d8a56aeefe2538734568c5335be336c6abed"; 9 }; 10 }
+3 -3
pkgs/desktops/gnome-3/core/adwaita-icon-theme/src.nix
··· 1 # Autogenerated by maintainers/scripts/gnome.sh update 2 3 fetchurl: { 4 - name = "adwaita-icon-theme-3.26.0"; 5 6 src = fetchurl { 7 - url = mirror://gnome/sources/adwaita-icon-theme/3.26/adwaita-icon-theme-3.26.0.tar.xz; 8 - sha256 = "9cad85de19313f5885497aceab0acbb3f08c60fcd5fa5610aeafff37a1d12212"; 9 }; 10 }
··· 1 # Autogenerated by maintainers/scripts/gnome.sh update 2 3 fetchurl: { 4 + name = "adwaita-icon-theme-3.26.1"; 5 6 src = fetchurl { 7 + url = mirror://gnome/sources/adwaita-icon-theme/3.26/adwaita-icon-theme-3.26.1.tar.xz; 8 + sha256 = "28ba7392c7761996efd780779167ea6c940eedfb1bf37cfe9bccb7021f54d79d"; 9 }; 10 }
+2 -2
pkgs/desktops/gnome-3/core/dconf/default.nix
··· 6 in 7 stdenv.mkDerivation rec { 8 name = "dconf-${version}"; 9 - version = "${majorVersion}.0"; 10 11 src = fetchurl { 12 url = "mirror://gnome/sources/dconf/${majorVersion}/${name}.tar.xz"; 13 - sha256 = "1jaqsr1r0grpd25rbsc2v3vb0sc51lia9w31wlqswgqsncp2k0w6"; 14 }; 15 16 outputs = [ "out" "lib" "dev" ];
··· 6 in 7 stdenv.mkDerivation rec { 8 name = "dconf-${version}"; 9 + version = "${majorVersion}.1"; 10 11 src = fetchurl { 12 url = "mirror://gnome/sources/dconf/${majorVersion}/${name}.tar.xz"; 13 + sha256 = "0da587hpiqy8h3pswn1102h4b905x8k6mk3ajpi7kf4kzkvv30ym"; 14 }; 15 16 outputs = [ "out" "lib" "dev" ];
+3 -3
pkgs/desktops/gnome-3/core/gsettings-desktop-schemas/src.nix
··· 1 # Autogenerated by maintainers/scripts/gnome.sh update 2 3 fetchurl: { 4 - name = "gsettings-desktop-schemas-3.24.0"; 5 6 src = fetchurl { 7 - url = mirror://gnome/sources/gsettings-desktop-schemas/3.24/gsettings-desktop-schemas-3.24.0.tar.xz; 8 - sha256 = "f6573a3f661d22ff8a001cc2421d8647717f1c0e697e342d03c6102f29bbbb90"; 9 }; 10 }
··· 1 # Autogenerated by maintainers/scripts/gnome.sh update 2 3 fetchurl: { 4 + name = "gsettings-desktop-schemas-3.24.1"; 5 6 src = fetchurl { 7 + url = mirror://gnome/sources/gsettings-desktop-schemas/3.24/gsettings-desktop-schemas-3.24.1.tar.xz; 8 + sha256 = "76a3fa309f9de6074d66848987214f0b128124ba7184c958c15ac78a8ac7eea7"; 9 }; 10 }
+3 -3
pkgs/desktops/gnome-3/core/gtksourceview/src.nix
··· 1 # Autogenerated by maintainers/scripts/gnome.sh update 2 3 fetchurl: { 4 - name = "gtksourceview-3.24.3"; 5 6 src = fetchurl { 7 - url = mirror://gnome/sources/gtksourceview/3.24/gtksourceview-3.24.3.tar.xz; 8 - sha256 = "3eed05486a6420c3e2fdda0bbb19a0d905ed09ebf442302a026ab7e574204cbd"; 9 }; 10 }
··· 1 # Autogenerated by maintainers/scripts/gnome.sh update 2 3 fetchurl: { 4 + name = "gtksourceview-3.24.5"; 5 6 src = fetchurl { 7 + url = mirror://gnome/sources/gtksourceview/3.24/gtksourceview-3.24.5.tar.xz; 8 + sha256 = "0246185fcc20c4734d01419a83f58f251a82e2a902fe60bb0335187fcf658181"; 9 }; 10 }
+3 -3
pkgs/desktops/gnome-3/core/gucharmap/src.nix
··· 1 # Autogenerated by maintainers/scripts/gnome.sh update 2 3 fetchurl: { 4 - name = "gucharmap-10.0.1"; 5 6 src = fetchurl { 7 - url = mirror://gnome/sources/gucharmap/10.0/gucharmap-10.0.1.tar.xz; 8 - sha256 = "51a2bf91c4590ea2159f828156864f088a0bd4c12e7a1c396002a23d48b2d5e2"; 9 }; 10 }
··· 1 # Autogenerated by maintainers/scripts/gnome.sh update 2 3 fetchurl: { 4 + name = "gucharmap-10.0.3"; 5 6 src = fetchurl { 7 + url = mirror://gnome/sources/gucharmap/10.0/gucharmap-10.0.3.tar.xz; 8 + sha256 = "ac07d75924e2d8f436d9492e8f7d54cf109404d34de06886a3967563cd1726a4"; 9 }; 10 }
+3 -3
pkgs/desktops/gnome-3/core/libgweather/src.nix
··· 1 # Autogenerated by maintainers/scripts/gnome.sh update 2 3 fetchurl: { 4 - name = "libgweather-3.26.0"; 5 6 src = fetchurl { 7 - url = mirror://gnome/sources/libgweather/3.26/libgweather-3.26.0.tar.xz; 8 - sha256 = "5b84badc0b3ecffff5db1bb9a7cc4dd4e400a8eb3f1282348f8ee6ba33626b6e"; 9 }; 10 }
··· 1 # Autogenerated by maintainers/scripts/gnome.sh update 2 3 fetchurl: { 4 + name = "libgweather-3.26.1"; 5 6 src = fetchurl { 7 + url = mirror://gnome/sources/libgweather/3.26/libgweather-3.26.1.tar.xz; 8 + sha256 = "fca78470b345bce948e0333cab0a7c52c32562fc4a75de37061248a64e8fc4b8"; 9 }; 10 }
+2 -2
pkgs/desktops/gnome-3/core/rest/default.nix
··· 3 stdenv.mkDerivation rec { 4 name = "rest-${version}"; 5 major = "0.8"; 6 - version = "${major}.0"; 7 8 src = fetchurl { 9 url = "mirror://gnome/sources/rest/${major}/${name}.tar.xz"; 10 - sha256 = "e7b89b200c1417073aef739e8a27ff2ab578056c27796ec74f5886a5e0dff647"; 11 }; 12 13 nativeBuildInputs = [ pkgconfig ];
··· 3 stdenv.mkDerivation rec { 4 name = "rest-${version}"; 5 major = "0.8"; 6 + version = "${major}.1"; 7 8 src = fetchurl { 9 url = "mirror://gnome/sources/rest/${major}/${name}.tar.xz"; 10 + sha256 = "0513aad38e5d3cedd4ae3c551634e3be1b9baaa79775e53b2dba9456f15b01c9"; 11 }; 12 13 nativeBuildInputs = [ pkgconfig ];
+1 -1
pkgs/desktops/gnome-3/core/totem-pl-parser/src.nix
··· 5 6 src = fetchurl { 7 url = mirror://gnome/sources/totem-pl-parser/3.26/totem-pl-parser-3.26.0.tar.xz; 8 - sha256 = "1jzvq7s6qdsdpbc58jpcwvyj7qsq58r65kmnbknjzd79j4rsalzi"; 9 }; 10 }
··· 5 6 src = fetchurl { 7 url = mirror://gnome/sources/totem-pl-parser/3.26/totem-pl-parser-3.26.0.tar.xz; 8 + sha256 = "f153a53391e9b42fed5cb6ce62322a58e323fde6ec4a54d8ba4d376cf4c1fbcb"; 9 }; 10 }
+2
pkgs/desktops/gnome-3/core/totem/default.nix
··· 10 doCheck = true; 11 12 # https://bugs.launchpad.net/ubuntu/+source/totem/+bug/1712021 13 enableParallelBuilding = false; 14 15 NIX_CFLAGS_COMPILE = "-I${gnome3.glib.dev}/include/gio-unix-2.0";
··· 10 doCheck = true; 11 12 # https://bugs.launchpad.net/ubuntu/+source/totem/+bug/1712021 13 + # https://bugzilla.gnome.org/show_bug.cgi?id=784236 14 + # https://github.com/mesonbuild/meson/issues/1994 15 enableParallelBuilding = false; 16 17 NIX_CFLAGS_COMPILE = "-I${gnome3.glib.dev}/include/gio-unix-2.0";
+3 -3
pkgs/desktops/gnome-3/core/tracker-miners/src.nix
··· 1 # Autogenerated by maintainers/scripts/gnome.sh update 2 3 fetchurl: { 4 - name = "tracker-miners-2.0.2"; 5 6 src = fetchurl { 7 - url = mirror://gnome/sources/tracker-miners/2.0/tracker-miners-2.0.2.tar.xz; 8 - sha256 = "cf417ece944c997f630dda41a7f5c449d609fa53dbb34fae7caa4c7af1e0e8ef"; 9 }; 10 }
··· 1 # Autogenerated by maintainers/scripts/gnome.sh update 2 3 fetchurl: { 4 + name = "tracker-miners-2.0.3"; 5 6 src = fetchurl { 7 + url = mirror://gnome/sources/tracker-miners/2.0/tracker-miners-2.0.3.tar.xz; 8 + sha256 = "12413a9f8dfa705a48a2697dcbb3eef12ee91bb98f392a23ba4bda7813e41d1b"; 9 }; 10 }
+1 -1
pkgs/desktops/gnome-3/core/tracker/default.nix
··· 1 - { stdenv, fetchurl, fetchpatch, intltool, pkgconfig 2 , libxml2, upower, glib, wrapGAppsHook, vala, sqlite, libxslt 3 , gnome3, icu, libuuid, networkmanager, libsoup, json_glib }: 4
··· 1 + { stdenv, fetchurl, intltool, pkgconfig 2 , libxml2, upower, glib, wrapGAppsHook, vala, sqlite, libxslt 3 , gnome3, icu, libuuid, networkmanager, libsoup, json_glib }: 4
+3 -3
pkgs/desktops/gnome-3/core/tracker/src.nix
··· 1 # Autogenerated by maintainers/scripts/gnome.sh update 2 3 fetchurl: { 4 - name = "tracker-2.0.1"; 5 6 src = fetchurl { 7 - url = mirror://gnome/sources/tracker/2.0/tracker-2.0.1.tar.xz; 8 - sha256 = "ac5c9f4dbb0741af5877ae2818d8c053aa9a431477a924a17976bb7e44411e47"; 9 }; 10 }
··· 1 # Autogenerated by maintainers/scripts/gnome.sh update 2 3 fetchurl: { 4 + name = "tracker-2.0.2"; 5 6 src = fetchurl { 7 + url = mirror://gnome/sources/tracker/2.0/tracker-2.0.2.tar.xz; 8 + sha256 = "ece71a56c29151a76fc1b6e43c15dd1b657b37162dc948fa2487faf5ddb47fda"; 9 }; 10 }
+3 -3
pkgs/desktops/gnome-3/games/aisleriot/src.nix
··· 1 # Autogenerated by maintainers/scripts/gnome.sh update 2 3 fetchurl: { 4 - name = "aisleriot-3.22.0"; 5 6 src = fetchurl { 7 - url = mirror://gnome/sources/aisleriot/3.22/aisleriot-3.22.0.tar.xz; 8 - sha256 = "e7b603df0a482bdd0ab8083efc096a24a46aea1b36cc8608846e568b7a353eb7"; 9 }; 10 }
··· 1 # Autogenerated by maintainers/scripts/gnome.sh update 2 3 fetchurl: { 4 + name = "aisleriot-3.22.4"; 5 6 src = fetchurl { 7 + url = mirror://gnome/sources/aisleriot/3.22/aisleriot-3.22.4.tar.xz; 8 + sha256 = "fe8dee3ad771ab778d37740a26410778aa5c61e8eb75dd42b9a5e5719c6e34fb"; 9 }; 10 }
+3 -3
pkgs/desktops/gnome-3/games/four-in-a-row/src.nix
··· 1 # Autogenerated by maintainers/scripts/gnome.sh update 2 3 fetchurl: { 4 - name = "four-in-a-row-3.22.0"; 5 6 src = fetchurl { 7 - url = mirror://gnome/sources/four-in-a-row/3.22/four-in-a-row-3.22.0.tar.xz; 8 - sha256 = "c2e26630f7b4e81cff087314edc0f39cd645dfbf4b31f826232bd8e9d57a7ff7"; 9 }; 10 }
··· 1 # Autogenerated by maintainers/scripts/gnome.sh update 2 3 fetchurl: { 4 + name = "four-in-a-row-3.22.2"; 5 6 src = fetchurl { 7 + url = mirror://gnome/sources/four-in-a-row/3.22/four-in-a-row-3.22.2.tar.xz; 8 + sha256 = "bc4194e8ab6d1d2a6a63a2e91945cd5465f49ebf0dae2eecacc66e69db56a420"; 9 }; 10 }
+3 -3
pkgs/desktops/gnome-3/games/gnome-robots/src.nix
··· 1 # Autogenerated by maintainers/scripts/gnome.sh update 2 3 fetchurl: { 4 - name = "gnome-robots-3.22.0"; 5 6 src = fetchurl { 7 - url = mirror://gnome/sources/gnome-robots/3.22/gnome-robots-3.22.0.tar.xz; 8 - sha256 = "ddb02f9d04c970354d1836813f8c0d9ffc3ff509091d2580384e2275663e6f73"; 9 }; 10 }
··· 1 # Autogenerated by maintainers/scripts/gnome.sh update 2 3 fetchurl: { 4 + name = "gnome-robots-3.22.2"; 5 6 src = fetchurl { 7 + url = mirror://gnome/sources/gnome-robots/3.22/gnome-robots-3.22.2.tar.xz; 8 + sha256 = "c5d63f0fcae66d0df9b10e39387d09875555909f0aa7e57ef8552621d852082f"; 9 }; 10 }
+3 -3
pkgs/desktops/gnome-3/games/hitori/src.nix
··· 1 # Autogenerated by maintainers/scripts/gnome.sh update 2 3 fetchurl: { 4 - name = "hitori-3.22.0"; 5 6 src = fetchurl { 7 - url = mirror://gnome/sources/hitori/3.22/hitori-3.22.0.tar.xz; 8 - sha256 = "f70521c9a7a7c3e16b3951b64780eb0c5bce1bb1bb29de4482be06fb5e41adaa"; 9 }; 10 }
··· 1 # Autogenerated by maintainers/scripts/gnome.sh update 2 3 fetchurl: { 4 + name = "hitori-3.22.4"; 5 6 src = fetchurl { 7 + url = mirror://gnome/sources/hitori/3.22/hitori-3.22.4.tar.xz; 8 + sha256 = "dcac6909b6007857ee425ac8c65fed179f2c71da138d5e5300cd62c8b9ea15d3"; 9 }; 10 }
+2 -2
pkgs/desktops/gnome-3/misc/gspell/default.nix
··· 5 6 propagatedBuildInputs = [ enchant ]; # required for pkgconfig 7 8 - nativeBuildInputs = [ pkgconfig ]; 9 - buildInputs = [ glib gtk3 isocodes vala ]; 10 11 meta = with stdenv.lib; { 12 platforms = platforms.linux;
··· 5 6 propagatedBuildInputs = [ enchant ]; # required for pkgconfig 7 8 + nativeBuildInputs = [ pkgconfig vala ]; 9 + buildInputs = [ glib gtk3 isocodes ]; 10 11 meta = with stdenv.lib; { 12 platforms = platforms.linux;
+6 -6
pkgs/desktops/gnome-3/misc/gspell/src.nix
··· 1 - fetchurl: rec { 2 - major = "1.4"; 3 - minor = "1"; 4 - name = "gspell-${major}.${minor}"; 5 6 src = fetchurl { 7 - url = "mirror://gnome/sources/gspell/${major}/${name}.tar.xz"; 8 - sha256 = "1ghh1xdzf04mfgb13zqpj88krpa44xv2vbyhm6k017kzrpz8hbs4"; 9 }; 10 }
··· 1 + # Autogenerated by maintainers/scripts/gnome.sh update 2 + 3 + fetchurl: { 4 + name = "gspell-1.6.1"; 5 6 src = fetchurl { 7 + url = mirror://gnome/sources/gspell/1.6/gspell-1.6.1.tar.xz; 8 + sha256 = "f4d329348775374eec18158f8dcbbacf76f85be5ce002a92d93054ece70ec4de"; 9 }; 10 }
+3 -3
pkgs/desktops/gnome-3/misc/libgit2-glib/src.nix
··· 1 # Autogenerated by maintainers/scripts/gnome.sh update 2 3 fetchurl: { 4 - name = "libgit2-glib-0.26.0"; 5 6 src = fetchurl { 7 - url = mirror://gnome/sources/libgit2-glib/0.26/libgit2-glib-0.26.0.tar.xz; 8 - sha256 = "06b16cfcc3a53d9804858618d690e5509e9af2e2245b75f0479cadbbe39745c3"; 9 }; 10 }
··· 1 # Autogenerated by maintainers/scripts/gnome.sh update 2 3 fetchurl: { 4 + name = "libgit2-glib-0.26.2"; 5 6 src = fetchurl { 7 + url = mirror://gnome/sources/libgit2-glib/0.26/libgit2-glib-0.26.2.tar.xz; 8 + sha256 = "2ad6f20db2e38bbfdb6cb452704fe8a911036b86de82dc75bb0f3b20db40ce9c"; 9 }; 10 }
+4 -4
pkgs/desktops/gnome-3/misc/libmediaart/default.nix
··· 4 majorVersion = "1.9"; 5 in 6 stdenv.mkDerivation rec { 7 - name = "libmediaart-${majorVersion}.1"; 8 9 src = fetchurl { 10 url = "mirror://gnome/sources/libmediaart/${majorVersion}/${name}.tar.xz"; 11 - sha256 = "0jg9gwxmhdxcbwb5svgkxkd3yl1d14wqzckcgg2swkn81i7al52v"; 12 }; 13 14 - nativeBuildInputs = [ pkgconfig ]; 15 - buildInputs = [ glib gdk_pixbuf gobjectIntrospection ]; 16 17 meta = with stdenv.lib; { 18 description = "Library tasked with managing, extracting and handling media art caches";
··· 4 majorVersion = "1.9"; 5 in 6 stdenv.mkDerivation rec { 7 + name = "libmediaart-${majorVersion}.4"; 8 9 src = fetchurl { 10 url = "mirror://gnome/sources/libmediaart/${majorVersion}/${name}.tar.xz"; 11 + sha256 = "a57be017257e4815389afe4f58fdacb6a50e74fd185452b23a652ee56b04813d"; 12 }; 13 14 + nativeBuildInputs = [ pkgconfig gobjectIntrospection ]; 15 + buildInputs = [ glib gdk_pixbuf ]; 16 17 meta = with stdenv.lib; { 18 description = "Library tasked with managing, extracting and handling media art caches";
+38 -33
pkgs/development/compilers/gcc/4.5/default.nix
··· 25 , libpthread ? null, libpthreadCross ? null # required for GNU/Hurd 26 , stripped ? true 27 , buildPlatform, hostPlatform, targetPlatform 28 }: 29 30 assert langJava -> zip != null && unzip != null ··· 258 "--with-mpc=${libmpc}" 259 ] ++ 260 optional (libelf != null) "--with-libelf=${libelf}" ++ 261 262 # Basic configuration 263 [ ··· 349 STRIP_FOR_TARGET = "${targetPlatform.config}-strip"; 350 CC_FOR_TARGET = "${targetPlatform.config}-gcc"; 351 CXX_FOR_TARGET = "${targetPlatform.config}-g++"; 352 - # If we are making a cross compiler, cross != null 353 - NIX_CC_CROSS = optionalString (targetPlatform == hostPlatform) builtins.toString stdenv.cc; 354 dontStrip = true; 355 }; 356 357 358 # Needed for the cross compilation to work 359 AR = "ar"; 360 LD = "ld"; 361 CC = "gcc"; 362 363 - # Setting $CPATH and $LIBRARY_PATH to make sure both `gcc' and `xgcc' find 364 - # the library headers and binaries, regarless of the language being 365 - # compiled. 366 - 367 - # Note: When building the Java AWT GTK+ peer, the build system doesn't 368 - # honor `--with-gmp' et al., e.g., when building 369 - # `libjava/classpath/native/jni/java-math/gnu_java_math_GMP.c', so we just 370 - # add them to $CPATH and $LIBRARY_PATH in this case. 371 # 372 # Likewise, the LTO code doesn't find zlib. 373 374 - CPATH = makeSearchPathOutput "dev" "include" ([] 375 ++ optional (zlib != null) zlib 376 ++ optional langJava boehmgc 377 ++ optionals javaAwtGtk xlibs ··· 382 # On GNU/Hurd glibc refers to Mach & Hurd 383 # headers. 384 ++ optionals (libcCross != null && libcCross ? propagatedBuildInputs) 385 - libcCross.propagatedBuildInputs); 386 387 - LIBRARY_PATH = makeLibraryPath ([] 388 ++ optional (zlib != null) zlib 389 ++ optional langJava boehmgc 390 ++ optionals javaAwtGtk xlibs 391 ++ optionals javaAwtGtk [ gmp mpfr ] 392 - ++ optional (libpthread != null) libpthread); 393 394 - EXTRA_TARGET_CFLAGS = 395 - if targetPlatform != hostPlatform && libcCross != null then [ 396 - "-idirafter ${libcCross.dev}/include" 397 - ] 398 - ++ optionals (! crossStageStatic) [ 399 - "-B${libcCross.out}/lib" 400 - ] 401 - else null; 402 403 - EXTRA_TARGET_LDFLAGS = 404 - if targetPlatform != hostPlatform && libcCross != null then [ 405 - "-Wl,-L${libcCross.out}/lib" 406 - ] 407 - ++ (if crossStageStatic then [ 408 "-B${libcCross.out}/lib" 409 ] else [ 410 "-Wl,-rpath,${libcCross.out}/lib" 411 "-Wl,-rpath-link,${libcCross.out}/lib" 412 - ]) 413 - ++ optionals (libpthreadCross != null) [ 414 - "-L${libpthreadCross}/lib" 415 - "-Wl,${libpthreadCross.TARGET_LDFLAGS}" 416 - ] 417 - else null; 418 419 passthru = { inherit langC langCC langAda langFortran langVhdl 420 enableMultilib version; isGNU = true; };
··· 25 , libpthread ? null, libpthreadCross ? null # required for GNU/Hurd 26 , stripped ? true 27 , buildPlatform, hostPlatform, targetPlatform 28 + , buildPackages 29 }: 30 31 assert langJava -> zip != null && unzip != null ··· 259 "--with-mpc=${libmpc}" 260 ] ++ 261 optional (libelf != null) "--with-libelf=${libelf}" ++ 262 + optional (!(crossMingw && crossStageStatic)) 263 + "--with-native-system-header-dir=${getDev stdenv.cc.libc}/include" ++ 264 265 # Basic configuration 266 [ ··· 352 STRIP_FOR_TARGET = "${targetPlatform.config}-strip"; 353 CC_FOR_TARGET = "${targetPlatform.config}-gcc"; 354 CXX_FOR_TARGET = "${targetPlatform.config}-g++"; 355 + 356 dontStrip = true; 357 }; 358 359 + NIX_BUILD_CC = buildPackages.stdenv.cc; 360 361 # Needed for the cross compilation to work 362 AR = "ar"; 363 LD = "ld"; 364 CC = "gcc"; 365 366 + # Setting $CPATH and $LIBRARY_PATH to make sure both `gcc' and `xgcc' find the 367 + # library headers and binaries, regarless of the language being compiled. 368 + # 369 + # Note: When building the Java AWT GTK+ peer, the build system doesn't honor 370 + # `--with-gmp' et al., e.g., when building 371 + # `libjava/classpath/native/jni/java-math/gnu_java_math_GMP.c', so we just add 372 + # them to $CPATH and $LIBRARY_PATH in this case. 373 # 374 # Likewise, the LTO code doesn't find zlib. 375 + # 376 + # Cross-compiling, we need gcc not to read ./specs in order to build the g++ 377 + # compiler (after the specs for the cross-gcc are created). Having 378 + # LIBRARY_PATH= makes gcc read the specs from ., and the build breaks. 379 380 + CPATH = optionals (targetPlatform == hostPlatform) (makeSearchPathOutput "dev" "include" ([] 381 ++ optional (zlib != null) zlib 382 ++ optional langJava boehmgc 383 ++ optionals javaAwtGtk xlibs ··· 388 # On GNU/Hurd glibc refers to Mach & Hurd 389 # headers. 390 ++ optionals (libcCross != null && libcCross ? propagatedBuildInputs) 391 + libcCross.propagatedBuildInputs 392 + )); 393 394 + LIBRARY_PATH = optionals (targetPlatform == hostPlatform) (makeLibraryPath ([] 395 ++ optional (zlib != null) zlib 396 ++ optional langJava boehmgc 397 ++ optionals javaAwtGtk xlibs 398 ++ optionals javaAwtGtk [ gmp mpfr ] 399 + ++ optional (libpthread != null) libpthread) 400 + ); 401 402 + EXTRA_TARGET_FLAGS = optionals 403 + (targetPlatform != hostPlatform && libcCross != null) 404 + ([ 405 + "-idirafter ${libcCross.dev}/include" 406 + ] ++ optionals (! crossStageStatic) [ 407 + "-B${libcCross.out}/lib" 408 + ]); 409 410 + EXTRA_TARGET_LDFLAGS = optionals 411 + (targetPlatform != hostPlatform && libcCross != null) 412 + ([ 413 + "-Wl,-L${libcCross.out}/lib" 414 + ] ++ (if crossStageStatic then [ 415 "-B${libcCross.out}/lib" 416 ] else [ 417 "-Wl,-rpath,${libcCross.out}/lib" 418 "-Wl,-rpath-link,${libcCross.out}/lib" 419 + ]) ++ optionals (libpthreadCross != null) [ 420 + "-L${libpthreadCross}/lib" 421 + "-Wl,${libpthreadCross.TARGET_LDFLAGS}" 422 + ]); 423 424 passthru = { inherit langC langCC langAda langFortran langVhdl 425 enableMultilib version; isGNU = true; };
+38 -41
pkgs/development/compilers/gcc/4.8/default.nix
··· 33 , gnused ? null 34 , darwin ? null 35 , buildPlatform, hostPlatform, targetPlatform 36 }: 37 38 assert langJava -> zip != null && unzip != null ··· 316 "--with-mpc=${libmpc}" 317 ] ++ 318 optional (libelf != null) "--with-libelf=${libelf}" ++ 319 320 # Basic configuration 321 [ ··· 371 372 # Ada 373 optional langAda "--enable-libada" ++ 374 - 375 - # Cross-compilation 376 - optional (targetPlatform == hostPlatform) ( 377 - let incDir = if hostPlatform.isDarwin 378 - then "${darwin.usr-include}" 379 - else "${getDev stdenv.cc.libc}/include"; 380 - in "--with-native-system-header-dir=${incDir}" 381 - ) ++ 382 383 platformFlags ++ 384 optional (targetPlatform != hostPlatform) crossConfigureFlags ++ ··· 444 STRIP_FOR_TARGET = "${targetPlatform.config}-strip"; 445 CC_FOR_TARGET = "${targetPlatform.config}-gcc"; 446 CXX_FOR_TARGET = "${targetPlatform.config}-g++"; 447 - # If we are making a cross compiler, targetPlatform != hostPlatform 448 - NIX_CC_CROSS = optionalString (targetPlatform == hostPlatform) builtins.toString stdenv.cc; 449 dontStrip = true; 450 buildFlags = ""; 451 }; 452 453 454 # Needed for the cross compilation to work 455 AR = "ar"; ··· 457 # http://gcc.gnu.org/install/specific.html#x86-64-x-solaris210 458 CC = if stdenv.system == "x86_64-solaris" then "gcc -m64" else "gcc"; 459 460 - # Setting $CPATH and $LIBRARY_PATH to make sure both `gcc' and `xgcc' find 461 - # the library headers and binaries, regarless of the language being 462 - # compiled. 463 - 464 - # Note: When building the Java AWT GTK+ peer, the build system doesn't 465 - # honor `--with-gmp' et al., e.g., when building 466 - # `libjava/classpath/native/jni/java-math/gnu_java_math_GMP.c', so we just 467 - # add them to $CPATH and $LIBRARY_PATH in this case. 468 # 469 # Likewise, the LTO code doesn't find zlib. 470 471 - CPATH = makeSearchPathOutput "dev" "include" ([] 472 ++ optional (zlib != null) zlib 473 ++ optional langJava boehmgc 474 ++ optionals javaAwtGtk xlibs ··· 479 # On GNU/Hurd glibc refers to Mach & Hurd 480 # headers. 481 ++ optionals (libcCross != null && libcCross ? propagatedBuildInputs) 482 - libcCross.propagatedBuildInputs); 483 484 - LIBRARY_PATH = makeLibraryPath ([] 485 ++ optional (zlib != null) zlib 486 ++ optional langJava boehmgc 487 ++ optionals javaAwtGtk xlibs 488 ++ optionals javaAwtGtk [ gmp mpfr ] 489 - ++ optional (libpthread != null) libpthread); 490 491 - EXTRA_TARGET_CFLAGS = 492 - if targetPlatform != hostPlatform && libcCross != null then [ 493 - "-idirafter ${getDev libcCross}/include" 494 - ] 495 - ++ optionals (! crossStageStatic) [ 496 - "-B${libcCross.out}/lib" 497 - ] 498 - else null; 499 500 - EXTRA_TARGET_LDFLAGS = 501 - if targetPlatform != hostPlatform && libcCross != null then [ 502 - "-Wl,-L${libcCross.out}/lib" 503 - ] 504 - ++ (if crossStageStatic then [ 505 "-B${libcCross.out}/lib" 506 ] else [ 507 "-Wl,-rpath,${libcCross.out}/lib" 508 "-Wl,-rpath-link,${libcCross.out}/lib" 509 - ]) 510 - ++ optionals (libpthreadCross != null) [ 511 - "-L${libpthreadCross}/lib" 512 - "-Wl,${libpthreadCross.TARGET_LDFLAGS}" 513 - ] 514 - else null; 515 516 passthru = 517 { inherit langC langCC langObjC langObjCpp langAda langFortran langVhdl langGo version; isGNU = true; };
··· 33 , gnused ? null 34 , darwin ? null 35 , buildPlatform, hostPlatform, targetPlatform 36 + , buildPackages 37 }: 38 39 assert langJava -> zip != null && unzip != null ··· 317 "--with-mpc=${libmpc}" 318 ] ++ 319 optional (libelf != null) "--with-libelf=${libelf}" ++ 320 + optional (!(crossMingw && crossStageStatic)) 321 + "--with-native-system-header-dir=${getDev stdenv.cc.libc}/include" ++ 322 323 # Basic configuration 324 [ ··· 374 375 # Ada 376 optional langAda "--enable-libada" ++ 377 378 platformFlags ++ 379 optional (targetPlatform != hostPlatform) crossConfigureFlags ++ ··· 439 STRIP_FOR_TARGET = "${targetPlatform.config}-strip"; 440 CC_FOR_TARGET = "${targetPlatform.config}-gcc"; 441 CXX_FOR_TARGET = "${targetPlatform.config}-g++"; 442 + 443 dontStrip = true; 444 buildFlags = ""; 445 }; 446 447 + NIX_BUILD_CC = buildPackages.stdenv.cc; 448 449 # Needed for the cross compilation to work 450 AR = "ar"; ··· 452 # http://gcc.gnu.org/install/specific.html#x86-64-x-solaris210 453 CC = if stdenv.system == "x86_64-solaris" then "gcc -m64" else "gcc"; 454 455 + # Setting $CPATH and $LIBRARY_PATH to make sure both `gcc' and `xgcc' find the 456 + # library headers and binaries, regarless of the language being compiled. 457 + # 458 + # Note: When building the Java AWT GTK+ peer, the build system doesn't honor 459 + # `--with-gmp' et al., e.g., when building 460 + # `libjava/classpath/native/jni/java-math/gnu_java_math_GMP.c', so we just add 461 + # them to $CPATH and $LIBRARY_PATH in this case. 462 # 463 # Likewise, the LTO code doesn't find zlib. 464 + # 465 + # Cross-compiling, we need gcc not to read ./specs in order to build the g++ 466 + # compiler (after the specs for the cross-gcc are created). Having 467 + # LIBRARY_PATH= makes gcc read the specs from ., and the build breaks. 468 469 + CPATH = optionals (targetPlatform == hostPlatform) (makeSearchPathOutput "dev" "include" ([] 470 ++ optional (zlib != null) zlib 471 ++ optional langJava boehmgc 472 ++ optionals javaAwtGtk xlibs ··· 477 # On GNU/Hurd glibc refers to Mach & Hurd 478 # headers. 479 ++ optionals (libcCross != null && libcCross ? propagatedBuildInputs) 480 + libcCross.propagatedBuildInputs 481 + )); 482 483 + LIBRARY_PATH = optionals (targetPlatform == hostPlatform) (makeLibraryPath ([] 484 ++ optional (zlib != null) zlib 485 ++ optional langJava boehmgc 486 ++ optionals javaAwtGtk xlibs 487 ++ optionals javaAwtGtk [ gmp mpfr ] 488 + ++ optional (libpthread != null) libpthread) 489 + ); 490 491 + EXTRA_TARGET_FLAGS = optionals 492 + (targetPlatform != hostPlatform && libcCross != null) 493 + ([ 494 + "-idirafter ${libcCross.dev}/include" 495 + ] ++ optionals (! crossStageStatic) [ 496 + "-B${libcCross.out}/lib" 497 + ]); 498 499 + EXTRA_TARGET_LDFLAGS = optionals 500 + (targetPlatform != hostPlatform && libcCross != null) 501 + ([ 502 + "-Wl,-L${libcCross.out}/lib" 503 + ] ++ (if crossStageStatic then [ 504 "-B${libcCross.out}/lib" 505 ] else [ 506 "-Wl,-rpath,${libcCross.out}/lib" 507 "-Wl,-rpath-link,${libcCross.out}/lib" 508 + ]) ++ optionals (libpthreadCross != null) [ 509 + "-L${libpthreadCross}/lib" 510 + "-Wl,${libpthreadCross.TARGET_LDFLAGS}" 511 + ]); 512 513 passthru = 514 { inherit langC langCC langObjC langObjCpp langAda langFortran langVhdl langGo version; isGNU = true; };
+38 -41
pkgs/development/compilers/gcc/4.9/default.nix
··· 33 , gnused ? null 34 , darwin ? null 35 , buildPlatform, hostPlatform, targetPlatform 36 }: 37 38 assert langJava -> zip != null && unzip != null ··· 314 "--with-mpc=${libmpc}" 315 ] ++ 316 optional (libelf != null) "--with-libelf=${libelf}" ++ 317 318 # Basic configuration 319 [ ··· 369 370 # Ada 371 optional langAda "--enable-libada" ++ 372 - 373 - # Cross-compilation 374 - optional (targetPlatform == hostPlatform) ( 375 - let incDir = if hostPlatform.isDarwin 376 - then "${darwin.usr-include}" 377 - else "${getDev stdenv.cc.libc}/include"; 378 - in "--with-native-system-header-dir=${incDir}" 379 - ) ++ 380 381 platformFlags ++ 382 optional (targetPlatform != hostPlatform) crossConfigureFlags ++ ··· 442 STRIP_FOR_TARGET = "${targetPlatform.config}-strip"; 443 CC_FOR_TARGET = "${targetPlatform.config}-gcc"; 444 CXX_FOR_TARGET = "${targetPlatform.config}-g++"; 445 - # If we are making a cross compiler, targetPlatform != hostPlatform 446 - NIX_CC_CROSS = optionalString (targetPlatform == hostPlatform) builtins.toString stdenv.cc; 447 dontStrip = true; 448 buildFlags = ""; 449 }; 450 451 452 # Needed for the cross compilation to work 453 AR = "ar"; ··· 455 # http://gcc.gnu.org/install/specific.html#x86-64-x-solaris210 456 CC = if stdenv.system == "x86_64-solaris" then "gcc -m64" else "gcc"; 457 458 - # Setting $CPATH and $LIBRARY_PATH to make sure both `gcc' and `xgcc' find 459 - # the library headers and binaries, regarless of the language being 460 - # compiled. 461 - 462 - # Note: When building the Java AWT GTK+ peer, the build system doesn't 463 - # honor `--with-gmp' et al., e.g., when building 464 - # `libjava/classpath/native/jni/java-math/gnu_java_math_GMP.c', so we just 465 - # add them to $CPATH and $LIBRARY_PATH in this case. 466 # 467 # Likewise, the LTO code doesn't find zlib. 468 469 - CPATH = makeSearchPathOutput "dev" "include" ([] 470 ++ optional (zlib != null) zlib 471 ++ optional langJava boehmgc 472 ++ optionals javaAwtGtk xlibs ··· 477 # On GNU/Hurd glibc refers to Mach & Hurd 478 # headers. 479 ++ optionals (libcCross != null && libcCross ? propagatedBuildInputs) 480 - libcCross.propagatedBuildInputs); 481 482 - LIBRARY_PATH = makeLibraryPath ([] 483 ++ optional (zlib != null) zlib 484 ++ optional langJava boehmgc 485 ++ optionals javaAwtGtk xlibs 486 ++ optionals javaAwtGtk [ gmp mpfr ] 487 - ++ optional (libpthread != null) libpthread); 488 489 - EXTRA_TARGET_CFLAGS = 490 - if targetPlatform != hostPlatform && libcCross != null then [ 491 - "-idirafter ${getDev libcCross}/include" 492 - ] 493 - ++ optionals (! crossStageStatic) [ 494 - "-B${libcCross.out}/lib" 495 - ] 496 - else null; 497 498 - EXTRA_TARGET_LDFLAGS = 499 - if targetPlatform != hostPlatform && libcCross != null then [ 500 - "-Wl,-L${libcCross.out}/lib" 501 - ] 502 - ++ (if crossStageStatic then [ 503 "-B${libcCross.out}/lib" 504 ] else [ 505 "-Wl,-rpath,${libcCross.out}/lib" 506 "-Wl,-rpath-link,${libcCross.out}/lib" 507 - ]) 508 - ++ optionals (libpthreadCross != null) [ 509 - "-L${libpthreadCross}/lib" 510 - "-Wl,${libpthreadCross.TARGET_LDFLAGS}" 511 - ] 512 - else null; 513 514 passthru = 515 { inherit langC langCC langObjC langObjCpp langAda langFortran langVhdl langGo version; isGNU = true; };
··· 33 , gnused ? null 34 , darwin ? null 35 , buildPlatform, hostPlatform, targetPlatform 36 + , buildPackages 37 }: 38 39 assert langJava -> zip != null && unzip != null ··· 315 "--with-mpc=${libmpc}" 316 ] ++ 317 optional (libelf != null) "--with-libelf=${libelf}" ++ 318 + optional (!(crossMingw && crossStageStatic)) 319 + "--with-native-system-header-dir=${getDev stdenv.cc.libc}/include" ++ 320 321 # Basic configuration 322 [ ··· 372 373 # Ada 374 optional langAda "--enable-libada" ++ 375 376 platformFlags ++ 377 optional (targetPlatform != hostPlatform) crossConfigureFlags ++ ··· 437 STRIP_FOR_TARGET = "${targetPlatform.config}-strip"; 438 CC_FOR_TARGET = "${targetPlatform.config}-gcc"; 439 CXX_FOR_TARGET = "${targetPlatform.config}-g++"; 440 + 441 dontStrip = true; 442 buildFlags = ""; 443 }; 444 445 + NIX_BUILD_CC = buildPackages.stdenv.cc; 446 447 # Needed for the cross compilation to work 448 AR = "ar"; ··· 450 # http://gcc.gnu.org/install/specific.html#x86-64-x-solaris210 451 CC = if stdenv.system == "x86_64-solaris" then "gcc -m64" else "gcc"; 452 453 + # Setting $CPATH and $LIBRARY_PATH to make sure both `gcc' and `xgcc' find the 454 + # library headers and binaries, regarless of the language being compiled. 455 + # 456 + # Note: When building the Java AWT GTK+ peer, the build system doesn't honor 457 + # `--with-gmp' et al., e.g., when building 458 + # `libjava/classpath/native/jni/java-math/gnu_java_math_GMP.c', so we just add 459 + # them to $CPATH and $LIBRARY_PATH in this case. 460 # 461 # Likewise, the LTO code doesn't find zlib. 462 + # 463 + # Cross-compiling, we need gcc not to read ./specs in order to build the g++ 464 + # compiler (after the specs for the cross-gcc are created). Having 465 + # LIBRARY_PATH= makes gcc read the specs from ., and the build breaks. 466 467 + CPATH = optionals (targetPlatform == hostPlatform) (makeSearchPathOutput "dev" "include" ([] 468 ++ optional (zlib != null) zlib 469 ++ optional langJava boehmgc 470 ++ optionals javaAwtGtk xlibs ··· 475 # On GNU/Hurd glibc refers to Mach & Hurd 476 # headers. 477 ++ optionals (libcCross != null && libcCross ? propagatedBuildInputs) 478 + libcCross.propagatedBuildInputs 479 + )); 480 481 + LIBRARY_PATH = optionals (targetPlatform == hostPlatform) (makeLibraryPath ([] 482 ++ optional (zlib != null) zlib 483 ++ optional langJava boehmgc 484 ++ optionals javaAwtGtk xlibs 485 ++ optionals javaAwtGtk [ gmp mpfr ] 486 + ++ optional (libpthread != null) libpthread) 487 + ); 488 489 + EXTRA_TARGET_FLAGS = optionals 490 + (targetPlatform != hostPlatform && libcCross != null) 491 + ([ 492 + "-idirafter ${getDev libcCross}/include" 493 + ] ++ optionals (! crossStageStatic) [ 494 + "-B${libcCross.out}/lib" 495 + ]); 496 497 + EXTRA_TARGET_LDFLAGS = optionals 498 + (targetPlatform != hostPlatform && libcCross != null) 499 + ([ 500 + "-Wl,-L${libcCross.out}/lib" 501 + ] ++ (if crossStageStatic then [ 502 "-B${libcCross.out}/lib" 503 ] else [ 504 "-Wl,-rpath,${libcCross.out}/lib" 505 "-Wl,-rpath-link,${libcCross.out}/lib" 506 + ]) ++ optionals (libpthreadCross != null) [ 507 + "-L${libpthreadCross}/lib" 508 + "-Wl,${libpthreadCross.TARGET_LDFLAGS}" 509 + ]); 510 511 passthru = 512 { inherit langC langCC langObjC langObjCpp langAda langFortran langVhdl langGo version; isGNU = true; };
+37 -41
pkgs/development/compilers/gcc/5/default.nix
··· 329 "--with-mpc=${libmpc}" 330 ] ++ 331 optional (libelf != null) "--with-libelf=${libelf}" ++ 332 333 # Basic configuration 334 [ ··· 379 380 # Ada 381 optional langAda "--enable-libada" ++ 382 - 383 - # Cross-compilation 384 - optional (targetPlatform == hostPlatform) ( 385 - let incDir = if hostPlatform.isDarwin 386 - then "${darwin.usr-include}" 387 - else "${getDev stdenv.cc.libc}/include"; 388 - in "--with-native-system-header-dir=${incDir}" 389 - ) ++ 390 391 platformFlags ++ 392 optional (targetPlatform != hostPlatform) crossConfigureFlags ++ ··· 452 STRIP_FOR_TARGET = "${targetPlatform.config}-strip"; 453 CC_FOR_TARGET = "${targetPlatform.config}-gcc"; 454 CXX_FOR_TARGET = "${targetPlatform.config}-g++"; 455 - # If we are making a cross compiler, targetPlatform != hostPlatform 456 - NIX_CC_CROSS = optionalString (targetPlatform == hostPlatform) builtins.toString stdenv.cc; 457 dontStrip = true; 458 buildFlags = ""; 459 }; 460 461 462 # Needed for the cross compilation to work 463 AR = "ar"; ··· 465 # http://gcc.gnu.org/install/specific.html#x86-64-x-solaris210 466 CC = if stdenv.system == "x86_64-solaris" then "gcc -m64" else "gcc"; 467 468 - # Setting $CPATH and $LIBRARY_PATH to make sure both `gcc' and `xgcc' find 469 - # the library headers and binaries, regarless of the language being 470 - # compiled. 471 - 472 - # Note: When building the Java AWT GTK+ peer, the build system doesn't 473 - # honor `--with-gmp' et al., e.g., when building 474 - # `libjava/classpath/native/jni/java-math/gnu_java_math_GMP.c', so we just 475 - # add them to $CPATH and $LIBRARY_PATH in this case. 476 # 477 # Likewise, the LTO code doesn't find zlib. 478 479 - CPATH = makeSearchPathOutput "dev" "include" ([] 480 ++ optional (zlib != null) zlib 481 ++ optional langJava boehmgc 482 ++ optionals javaAwtGtk xlibs ··· 487 # On GNU/Hurd glibc refers to Mach & Hurd 488 # headers. 489 ++ optionals (libcCross != null && libcCross ? propagatedBuildInputs) 490 - libcCross.propagatedBuildInputs); 491 492 - LIBRARY_PATH = makeLibraryPath ([] 493 ++ optional (zlib != null) zlib 494 ++ optional langJava boehmgc 495 ++ optionals javaAwtGtk xlibs 496 ++ optionals javaAwtGtk [ gmp mpfr ] 497 - ++ optional (libpthread != null) libpthread); 498 499 - EXTRA_TARGET_CFLAGS = 500 - if targetPlatform != hostPlatform && libcCross != null then [ 501 - "-idirafter ${getDev libcCross}/include" 502 - ] 503 - ++ optionals (! crossStageStatic) [ 504 - "-B${libcCross.out}/lib" 505 - ] 506 - else null; 507 508 - EXTRA_TARGET_LDFLAGS = 509 - if targetPlatform != hostPlatform && libcCross != null then [ 510 - "-Wl,-L${libcCross.out}/lib" 511 - ] 512 - ++ (if crossStageStatic then [ 513 "-B${libcCross.out}/lib" 514 ] else [ 515 "-Wl,-rpath,${libcCross.out}/lib" 516 "-Wl,-rpath-link,${libcCross.out}/lib" 517 - ]) 518 - ++ optionals (libpthreadCross != null) [ 519 - "-L${libpthreadCross}/lib" 520 - "-Wl,${libpthreadCross.TARGET_LDFLAGS}" 521 - ] 522 - else null; 523 524 passthru = 525 { inherit langC langCC langObjC langObjCpp langAda langFortran langVhdl langGo version; isGNU = true; };
··· 329 "--with-mpc=${libmpc}" 330 ] ++ 331 optional (libelf != null) "--with-libelf=${libelf}" ++ 332 + optional (!(crossMingw && crossStageStatic)) 333 + "--with-native-system-header-dir=${getDev stdenv.cc.libc}/include" ++ 334 335 # Basic configuration 336 [ ··· 381 382 # Ada 383 optional langAda "--enable-libada" ++ 384 385 platformFlags ++ 386 optional (targetPlatform != hostPlatform) crossConfigureFlags ++ ··· 446 STRIP_FOR_TARGET = "${targetPlatform.config}-strip"; 447 CC_FOR_TARGET = "${targetPlatform.config}-gcc"; 448 CXX_FOR_TARGET = "${targetPlatform.config}-g++"; 449 + 450 dontStrip = true; 451 buildFlags = ""; 452 }; 453 454 + NIX_BUILD_CC = buildPackages.stdenv.cc; 455 456 # Needed for the cross compilation to work 457 AR = "ar"; ··· 459 # http://gcc.gnu.org/install/specific.html#x86-64-x-solaris210 460 CC = if stdenv.system == "x86_64-solaris" then "gcc -m64" else "gcc"; 461 462 + # Setting $CPATH and $LIBRARY_PATH to make sure both `gcc' and `xgcc' find the 463 + # library headers and binaries, regarless of the language being compiled. 464 + # 465 + # Note: When building the Java AWT GTK+ peer, the build system doesn't honor 466 + # `--with-gmp' et al., e.g., when building 467 + # `libjava/classpath/native/jni/java-math/gnu_java_math_GMP.c', so we just add 468 + # them to $CPATH and $LIBRARY_PATH in this case. 469 # 470 # Likewise, the LTO code doesn't find zlib. 471 + # 472 + # Cross-compiling, we need gcc not to read ./specs in order to build the g++ 473 + # compiler (after the specs for the cross-gcc are created). Having 474 + # LIBRARY_PATH= makes gcc read the specs from ., and the build breaks. 475 476 + CPATH = optionals (targetPlatform == hostPlatform) (makeSearchPathOutput "dev" "include" ([] 477 ++ optional (zlib != null) zlib 478 ++ optional langJava boehmgc 479 ++ optionals javaAwtGtk xlibs ··· 484 # On GNU/Hurd glibc refers to Mach & Hurd 485 # headers. 486 ++ optionals (libcCross != null && libcCross ? propagatedBuildInputs) 487 + libcCross.propagatedBuildInputs 488 + )); 489 490 + LIBRARY_PATH = optionals (targetPlatform == hostPlatform) (makeLibraryPath ([] 491 ++ optional (zlib != null) zlib 492 ++ optional langJava boehmgc 493 ++ optionals javaAwtGtk xlibs 494 ++ optionals javaAwtGtk [ gmp mpfr ] 495 + ++ optional (libpthread != null) libpthread) 496 + ); 497 498 + EXTRA_TARGET_FLAGS = optionals 499 + (targetPlatform != hostPlatform && libcCross != null) 500 + ([ 501 + "-idirafter ${getDev libcCross}/include" 502 + ] ++ optionals (! crossStageStatic) [ 503 + "-B${libcCross.out}/lib" 504 + ]); 505 506 + EXTRA_TARGET_LDFLAGS = optionals 507 + (targetPlatform != hostPlatform && libcCross != null) 508 + ([ 509 + "-Wl,-L${libcCross.out}/lib" 510 + ] ++ (if crossStageStatic then [ 511 "-B${libcCross.out}/lib" 512 ] else [ 513 "-Wl,-rpath,${libcCross.out}/lib" 514 "-Wl,-rpath-link,${libcCross.out}/lib" 515 + ]) ++ optionals (libpthreadCross != null) [ 516 + "-L${libpthreadCross}/lib" 517 + "-Wl,${libpthreadCross.TARGET_LDFLAGS}" 518 + ]); 519 520 passthru = 521 { inherit langC langCC langObjC langObjCpp langAda langFortran langVhdl langGo version; isGNU = true; };
+38 -41
pkgs/development/compilers/gcc/6/default.nix
··· 34 , cloog # unused; just for compat with gcc4, as we override the parameter on some places 35 , darwin ? null 36 , buildPlatform, hostPlatform, targetPlatform 37 }: 38 39 assert langJava -> zip != null && unzip != null ··· 330 "--with-mpc=${libmpc}" 331 ] ++ 332 optional (libelf != null) "--with-libelf=${libelf}" ++ 333 334 # Basic configuration 335 [ ··· 380 381 # Ada 382 optional langAda "--enable-libada" ++ 383 - 384 - # Cross-compilation 385 - optional (targetPlatform == hostPlatform) ( 386 - let incDir = if hostPlatform.isDarwin 387 - then "${darwin.usr-include}" 388 - else "${getDev stdenv.cc.libc}/include"; 389 - in "--with-native-system-header-dir=${incDir}" 390 - ) ++ 391 392 platformFlags ++ 393 optional (targetPlatform != hostPlatform) crossConfigureFlags ++ ··· 452 STRIP_FOR_TARGET = "${targetPlatform.config}-strip"; 453 CC_FOR_TARGET = "${targetPlatform.config}-gcc"; 454 CXX_FOR_TARGET = "${targetPlatform.config}-g++"; 455 - # If we are making a cross compiler, targetPlatform != hostPlatform 456 - NIX_CC_CROSS = optionalString (targetPlatform == hostPlatform) builtins.toString stdenv.cc; 457 dontStrip = true; 458 buildFlags = ""; 459 }; 460 461 462 # Needed for the cross compilation to work 463 AR = "ar"; ··· 465 # http://gcc.gnu.org/install/specific.html#x86-64-x-solaris210 466 CC = if stdenv.system == "x86_64-solaris" then "gcc -m64" else "gcc"; 467 468 - # Setting $CPATH and $LIBRARY_PATH to make sure both `gcc' and `xgcc' find 469 - # the library headers and binaries, regarless of the language being 470 - # compiled. 471 - 472 - # Note: When building the Java AWT GTK+ peer, the build system doesn't 473 - # honor `--with-gmp' et al., e.g., when building 474 - # `libjava/classpath/native/jni/java-math/gnu_java_math_GMP.c', so we just 475 - # add them to $CPATH and $LIBRARY_PATH in this case. 476 # 477 # Likewise, the LTO code doesn't find zlib. 478 479 - CPATH = makeSearchPathOutput "dev" "include" ([] 480 ++ optional (zlib != null) zlib 481 ++ optional langJava boehmgc 482 ++ optionals javaAwtGtk xlibs ··· 487 # On GNU/Hurd glibc refers to Mach & Hurd 488 # headers. 489 ++ optionals (libcCross != null && libcCross ? propagatedBuildInputs) 490 - libcCross.propagatedBuildInputs); 491 492 - LIBRARY_PATH = makeLibraryPath ([] 493 ++ optional (zlib != null) zlib 494 ++ optional langJava boehmgc 495 ++ optionals javaAwtGtk xlibs 496 ++ optionals javaAwtGtk [ gmp mpfr ] 497 - ++ optional (libpthread != null) libpthread); 498 499 - EXTRA_TARGET_CFLAGS = 500 - if targetPlatform != hostPlatform && libcCross != null then [ 501 - "-idirafter ${getDev libcCross}/include" 502 - ] 503 - ++ optionals (! crossStageStatic) [ 504 - "-B${libcCross.out}/lib" 505 - ] 506 - else null; 507 508 - EXTRA_TARGET_LDFLAGS = 509 - if targetPlatform != hostPlatform && libcCross != null then [ 510 - "-Wl,-L${libcCross.out}/lib" 511 - ] 512 - ++ (if crossStageStatic then [ 513 "-B${libcCross.out}/lib" 514 ] else [ 515 "-Wl,-rpath,${libcCross.out}/lib" 516 "-Wl,-rpath-link,${libcCross.out}/lib" 517 - ]) 518 - ++ optionals (libpthreadCross != null) [ 519 - "-L${libpthreadCross}/lib" 520 - "-Wl,${libpthreadCross.TARGET_LDFLAGS}" 521 - ] 522 - else null; 523 524 passthru = 525 { inherit langC langCC langObjC langObjCpp langAda langFortran langVhdl langGo version; isGNU = true; };
··· 34 , cloog # unused; just for compat with gcc4, as we override the parameter on some places 35 , darwin ? null 36 , buildPlatform, hostPlatform, targetPlatform 37 + , buildPackages 38 }: 39 40 assert langJava -> zip != null && unzip != null ··· 331 "--with-mpc=${libmpc}" 332 ] ++ 333 optional (libelf != null) "--with-libelf=${libelf}" ++ 334 + optional (!(crossMingw && crossStageStatic)) 335 + "--with-native-system-header-dir=${getDev stdenv.cc.libc}/include" ++ 336 337 # Basic configuration 338 [ ··· 383 384 # Ada 385 optional langAda "--enable-libada" ++ 386 387 platformFlags ++ 388 optional (targetPlatform != hostPlatform) crossConfigureFlags ++ ··· 447 STRIP_FOR_TARGET = "${targetPlatform.config}-strip"; 448 CC_FOR_TARGET = "${targetPlatform.config}-gcc"; 449 CXX_FOR_TARGET = "${targetPlatform.config}-g++"; 450 + 451 dontStrip = true; 452 buildFlags = ""; 453 }; 454 455 + NIX_BUILD_CC = buildPackages.stdenv.cc; 456 457 # Needed for the cross compilation to work 458 AR = "ar"; ··· 460 # http://gcc.gnu.org/install/specific.html#x86-64-x-solaris210 461 CC = if stdenv.system == "x86_64-solaris" then "gcc -m64" else "gcc"; 462 463 + # Setting $CPATH and $LIBRARY_PATH to make sure both `gcc' and `xgcc' find the 464 + # library headers and binaries, regarless of the language being compiled. 465 + # 466 + # Note: When building the Java AWT GTK+ peer, the build system doesn't honor 467 + # `--with-gmp' et al., e.g., when building 468 + # `libjava/classpath/native/jni/java-math/gnu_java_math_GMP.c', so we just add 469 + # them to $CPATH and $LIBRARY_PATH in this case. 470 # 471 # Likewise, the LTO code doesn't find zlib. 472 + # 473 + # Cross-compiling, we need gcc not to read ./specs in order to build the g++ 474 + # compiler (after the specs for the cross-gcc are created). Having 475 + # LIBRARY_PATH= makes gcc read the specs from ., and the build breaks. 476 477 + CPATH = optionals (targetPlatform == hostPlatform) (makeSearchPathOutput "dev" "include" ([] 478 ++ optional (zlib != null) zlib 479 ++ optional langJava boehmgc 480 ++ optionals javaAwtGtk xlibs ··· 485 # On GNU/Hurd glibc refers to Mach & Hurd 486 # headers. 487 ++ optionals (libcCross != null && libcCross ? propagatedBuildInputs) 488 + libcCross.propagatedBuildInputs 489 + )); 490 491 + LIBRARY_PATH = optionals (targetPlatform == hostPlatform) (makeLibraryPath ([] 492 ++ optional (zlib != null) zlib 493 ++ optional langJava boehmgc 494 ++ optionals javaAwtGtk xlibs 495 ++ optionals javaAwtGtk [ gmp mpfr ] 496 + ++ optional (libpthread != null) libpthread) 497 + ); 498 499 + EXTRA_TARGET_FLAGS = optionals 500 + (targetPlatform != hostPlatform && libcCross != null) 501 + ([ 502 + "-idirafter ${getDev libcCross}/include" 503 + ] ++ optionals (! crossStageStatic) [ 504 + "-B${libcCross.out}/lib" 505 + ]); 506 507 + EXTRA_TARGET_LDFLAGS = optionals 508 + (targetPlatform != hostPlatform && libcCross != null) 509 + ([ 510 + "-Wl,-L${libcCross.out}/lib" 511 + ] ++ (if crossStageStatic then [ 512 "-B${libcCross.out}/lib" 513 ] else [ 514 "-Wl,-rpath,${libcCross.out}/lib" 515 "-Wl,-rpath-link,${libcCross.out}/lib" 516 + ]) ++ optionals (libpthreadCross != null) [ 517 + "-L${libpthreadCross}/lib" 518 + "-Wl,${libpthreadCross.TARGET_LDFLAGS}" 519 + ]); 520 521 passthru = 522 { inherit langC langCC langObjC langObjCpp langAda langFortran langVhdl langGo version; isGNU = true; };
+38 -41
pkgs/development/compilers/gcc/7/default.nix
··· 35 , darwin ? null 36 , flex ? null 37 , buildPlatform, hostPlatform, targetPlatform 38 }: 39 40 assert langJava -> zip != null && unzip != null ··· 323 "--with-mpc=${libmpc}" 324 ] ++ 325 optional (libelf != null) "--with-libelf=${libelf}" ++ 326 327 # Basic configuration 328 [ ··· 373 374 # Ada 375 optional langAda "--enable-libada" ++ 376 - 377 - # Cross-compilation 378 - optional (targetPlatform == hostPlatform) ( 379 - let incDir = if hostPlatform.isDarwin 380 - then "${darwin.usr-include}" 381 - else "${getDev stdenv.cc.libc}/include"; 382 - in "--with-native-system-header-dir=${incDir}" 383 - ) ++ 384 385 platformFlags ++ 386 optional (targetPlatform != hostPlatform) crossConfigureFlags ++ ··· 446 STRIP_FOR_TARGET = "${targetPlatform.config}-strip"; 447 CC_FOR_TARGET = "${targetPlatform.config}-gcc"; 448 CXX_FOR_TARGET = "${targetPlatform.config}-g++"; 449 - # If we are making a cross compiler, targetPlatform != hostPlatform 450 - NIX_CC_CROSS = optionalString (targetPlatform == hostPlatform) builtins.toString stdenv.cc; 451 dontStrip = true; 452 buildFlags = ""; 453 }; 454 455 456 # Needed for the cross compilation to work 457 AR = "ar"; ··· 459 # http://gcc.gnu.org/install/specific.html#x86-64-x-solaris210 460 CC = if stdenv.system == "x86_64-solaris" then "gcc -m64" else "gcc"; 461 462 - # Setting $CPATH and $LIBRARY_PATH to make sure both `gcc' and `xgcc' find 463 - # the library headers and binaries, regarless of the language being 464 - # compiled. 465 - 466 - # Note: When building the Java AWT GTK+ peer, the build system doesn't 467 - # honor `--with-gmp' et al., e.g., when building 468 - # `libjava/classpath/native/jni/java-math/gnu_java_math_GMP.c', so we just 469 - # add them to $CPATH and $LIBRARY_PATH in this case. 470 # 471 # Likewise, the LTO code doesn't find zlib. 472 473 - CPATH = makeSearchPathOutput "dev" "include" ([] 474 ++ optional (zlib != null) zlib 475 ++ optional langJava boehmgc 476 ++ optionals javaAwtGtk xlibs ··· 481 # On GNU/Hurd glibc refers to Mach & Hurd 482 # headers. 483 ++ optionals (libcCross != null && libcCross ? propagatedBuildInputs) 484 - libcCross.propagatedBuildInputs); 485 486 - LIBRARY_PATH = makeLibraryPath ([] 487 ++ optional (zlib != null) zlib 488 ++ optional langJava boehmgc 489 ++ optionals javaAwtGtk xlibs 490 ++ optionals javaAwtGtk [ gmp mpfr ] 491 - ++ optional (libpthread != null) libpthread); 492 493 - EXTRA_TARGET_CFLAGS = 494 - if targetPlatform != hostPlatform && libcCross != null then [ 495 - "-idirafter ${getDev libcCross}/include" 496 - ] 497 - ++ optionals (! crossStageStatic) [ 498 - "-B${libcCross.out}/lib" 499 - ] 500 - else null; 501 502 - EXTRA_TARGET_LDFLAGS = 503 - if targetPlatform != hostPlatform && libcCross != null then [ 504 - "-Wl,-L${libcCross.out}/lib" 505 - ] 506 - ++ (if crossStageStatic then [ 507 "-B${libcCross.out}/lib" 508 ] else [ 509 "-Wl,-rpath,${libcCross.out}/lib" 510 "-Wl,-rpath-link,${libcCross.out}/lib" 511 - ]) 512 - ++ optionals (libpthreadCross != null) [ 513 - "-L${libpthreadCross}/lib" 514 - "-Wl,${libpthreadCross.TARGET_LDFLAGS}" 515 - ] 516 - else null; 517 518 passthru = 519 { inherit langC langCC langObjC langObjCpp langAda langFortran langVhdl langGo version; isGNU = true; };
··· 35 , darwin ? null 36 , flex ? null 37 , buildPlatform, hostPlatform, targetPlatform 38 + , buildPackages 39 }: 40 41 assert langJava -> zip != null && unzip != null ··· 324 "--with-mpc=${libmpc}" 325 ] ++ 326 optional (libelf != null) "--with-libelf=${libelf}" ++ 327 + optional (!(crossMingw && crossStageStatic)) 328 + "--with-native-system-header-dir=${getDev stdenv.cc.libc}/include" ++ 329 330 # Basic configuration 331 [ ··· 376 377 # Ada 378 optional langAda "--enable-libada" ++ 379 380 platformFlags ++ 381 optional (targetPlatform != hostPlatform) crossConfigureFlags ++ ··· 441 STRIP_FOR_TARGET = "${targetPlatform.config}-strip"; 442 CC_FOR_TARGET = "${targetPlatform.config}-gcc"; 443 CXX_FOR_TARGET = "${targetPlatform.config}-g++"; 444 + 445 dontStrip = true; 446 buildFlags = ""; 447 }; 448 449 + NIX_BUILD_CC = buildPackages.stdenv.cc; 450 451 # Needed for the cross compilation to work 452 AR = "ar"; ··· 454 # http://gcc.gnu.org/install/specific.html#x86-64-x-solaris210 455 CC = if stdenv.system == "x86_64-solaris" then "gcc -m64" else "gcc"; 456 457 + # Setting $CPATH and $LIBRARY_PATH to make sure both `gcc' and `xgcc' find the 458 + # library headers and binaries, regarless of the language being compiled. 459 + # 460 + # Note: When building the Java AWT GTK+ peer, the build system doesn't honor 461 + # `--with-gmp' et al., e.g., when building 462 + # `libjava/classpath/native/jni/java-math/gnu_java_math_GMP.c', so we just add 463 + # them to $CPATH and $LIBRARY_PATH in this case. 464 # 465 # Likewise, the LTO code doesn't find zlib. 466 + # 467 + # Cross-compiling, we need gcc not to read ./specs in order to build the g++ 468 + # compiler (after the specs for the cross-gcc are created). Having 469 + # LIBRARY_PATH= makes gcc read the specs from ., and the build breaks. 470 471 + CPATH = optionals (targetPlatform == hostPlatform) (makeSearchPathOutput "dev" "include" ([] 472 ++ optional (zlib != null) zlib 473 ++ optional langJava boehmgc 474 ++ optionals javaAwtGtk xlibs ··· 479 # On GNU/Hurd glibc refers to Mach & Hurd 480 # headers. 481 ++ optionals (libcCross != null && libcCross ? propagatedBuildInputs) 482 + libcCross.propagatedBuildInputs 483 + )); 484 485 + LIBRARY_PATH = optionals (targetPlatform == hostPlatform) (makeLibraryPath ([] 486 ++ optional (zlib != null) zlib 487 ++ optional langJava boehmgc 488 ++ optionals javaAwtGtk xlibs 489 ++ optionals javaAwtGtk [ gmp mpfr ] 490 + ++ optional (libpthread != null) libpthread) 491 + ); 492 493 + EXTRA_TARGET_FLAGS = optionals 494 + (targetPlatform != hostPlatform && libcCross != null) 495 + ([ 496 + "-idirafter ${getDev libcCross}/include" 497 + ] ++ optionals (! crossStageStatic) [ 498 + "-B${libcCross.out}/lib" 499 + ]); 500 501 + EXTRA_TARGET_LDFLAGS = optionals 502 + (targetPlatform != hostPlatform && libcCross != null) 503 + ([ 504 + "-Wl,-L${libcCross.out}/lib" 505 + ] ++ (if crossStageStatic then [ 506 "-B${libcCross.out}/lib" 507 ] else [ 508 "-Wl,-rpath,${libcCross.out}/lib" 509 "-Wl,-rpath-link,${libcCross.out}/lib" 510 + ]) ++ optionals (libpthreadCross != null) [ 511 + "-L${libpthreadCross}/lib" 512 + "-Wl,${libpthreadCross.TARGET_LDFLAGS}" 513 + ]); 514 515 passthru = 516 { inherit langC langCC langObjC langObjCpp langAda langFortran langVhdl langGo version; isGNU = true; };
+94 -106
pkgs/development/compilers/gcc/builder.sh
··· 1 source $stdenv/setup 2 3 4 - export NIX_FIXINC_DUMMY=$NIX_BUILD_TOP/dummy 5 - mkdir $NIX_FIXINC_DUMMY 6 7 8 if test "$staticCompiler" = "1"; then ··· 13 14 15 # GCC interprets empty paths as ".", which we don't want. 16 - if test -z "$CPATH"; then unset CPATH; fi 17 - if test -z "$LIBRARY_PATH"; then unset LIBRARY_PATH; fi 18 - echo "\$CPATH is \`$CPATH'" 19 - echo "\$LIBRARY_PATH is \`$LIBRARY_PATH'" 20 21 if test "$noSysDirs" = "1"; then 22 23 - if test -e $NIX_CC/nix-support/orig-libc; then 24 - 25 - # Figure out what extra flags to pass to the gcc compilers 26 - # being generated to make sure that they use our glibc. 27 - extraFlags="$(cat $NIX_CC/nix-support/libc-cflags)" 28 - extraLDFlags="$(cat $NIX_CC/nix-support/libc-ldflags) $(cat $NIX_CC/nix-support/libc-ldflags-before || true)" 29 - 30 - # Use *real* header files, otherwise a limits.h is generated 31 - # that does not include Glibc's limits.h (notably missing 32 - # SSIZE_MAX, which breaks the build). 33 - export NIX_FIXINC_DUMMY=$libc_dev/include 34 35 - # The path to the Glibc binaries such as `crti.o'. 36 - glibc_libdir="$(cat $NIX_CC/nix-support/orig-libc)/lib" 37 38 - else 39 - # Hack: support impure environments. 40 - extraFlags="-isystem /usr/include" 41 - extraLDFlags="-L/usr/lib64 -L/usr/lib" 42 - glibc_libdir="/usr/lib" 43 - export NIX_FIXINC_DUMMY=/usr/include 44 - fi 45 - 46 - extraFlags="-I$NIX_FIXINC_DUMMY $extraFlags" 47 - extraLDFlags="-L$glibc_libdir -rpath $glibc_libdir $extraLDFlags" 48 - 49 - # BOOT_CFLAGS defaults to `-g -O2'; since we override it below, 50 - # make sure to explictly add them so that files compiled with the 51 - # bootstrap compiler are optimized and (optionally) contain 52 - # debugging information (info "(gccinstall) Building"). 53 - if test -n "$dontStrip"; then 54 - extraFlags="-O2 -g $extraFlags" 55 - else 56 - # Don't pass `-g' at all; this saves space while building. 57 - extraFlags="-O2 $extraFlags" 58 - fi 59 60 - EXTRA_FLAGS="$extraFlags" 61 - for i in $extraLDFlags; do 62 - EXTRA_LDFLAGS="$EXTRA_LDFLAGS -Wl,$i" 63 - done 64 65 - if test -n "$targetConfig"; then 66 - # Cross-compiling, we need gcc not to read ./specs in order to build 67 - # the g++ compiler (after the specs for the cross-gcc are created). 68 - # Having LIBRARY_PATH= makes gcc read the specs from ., and the build 69 - # breaks. Having this variable comes from the default.nix code to bring 70 - # gcj in. 71 - unset LIBRARY_PATH 72 - unset CPATH 73 - else 74 - if test -z "$NIX_CC_CROSS"; then 75 - EXTRA_TARGET_CFLAGS="$EXTRA_FLAGS" 76 - EXTRA_TARGET_CXXFLAGS="$EXTRA_FLAGS" 77 - EXTRA_TARGET_LDFLAGS="$EXTRA_LDFLAGS" 78 else 79 - # This the case of cross-building the gcc. 80 - # We need special flags for the target, different than those of the build 81 - # Assertion: 82 - test -e $NIX_CC_CROSS/nix-support/orig-libc 83 - 84 - # Figure out what extra flags to pass to the gcc compilers 85 - # being generated to make sure that they use our glibc. 86 - extraFlags="$(cat $NIX_CC_CROSS/nix-support/libc-cflags)" 87 - extraLDFlags="$(cat $NIX_CC_CROSS/nix-support/libc-ldflags) $(cat $NIX_CC_CROSS/nix-support/libc-ldflags-before)" 88 89 - # The path to the Glibc binaries such as `crti.o'. 90 - glibc_dir="$(cat $NIX_CC_CROSS/nix-support/orig-libc)" 91 - glibc_libdir="$glibc_dir/lib" 92 - glibc_devdir="$(cat $NIX_CC_CROSS/nix-support/orig-libc-dev)" 93 - configureFlags="$configureFlags --with-native-system-header-dir=$glibc_devdir/include" 94 95 - # Use *real* header files, otherwise a limits.h is generated 96 - # that does not include Glibc's limits.h (notably missing 97 - # SSIZE_MAX, which breaks the build). 98 - NIX_FIXINC_DUMMY_CROSS="$glibc_devdir/include" 99 100 - extraFlags="-I$NIX_FIXINC_DUMMY_CROSS $extraFlags" 101 - extraLDFlags="-L$glibc_libdir -rpath $glibc_libdir $extraLDFlags" 102 103 - EXTRA_TARGET_CFLAGS="$extraFlags" 104 - for i in $extraLDFlags; do 105 - EXTRA_TARGET_LDFLAGS="$EXTRA_TARGET_LDFLAGS -Wl,$i" 106 - done 107 - fi 108 fi 109 110 # CFLAGS_FOR_TARGET are needed for the libstdc++ configure script to find 111 # the startfiles. 112 # FLAGS_FOR_TARGET are needed for the target libraries to receive the -Bxxx 113 # for the startfiles. 114 - makeFlagsArray+=( \ 115 - NATIVE_SYSTEM_HEADER_DIR="$NIX_FIXINC_DUMMY" \ 116 - SYSTEM_HEADER_DIR="$NIX_FIXINC_DUMMY" \ 117 - CFLAGS_FOR_BUILD="$EXTRA_FLAGS $EXTRA_LDFLAGS" \ 118 - CXXFLAGS_FOR_BUILD="$EXTRA_FLAGS $EXTRA_LDFLAGS" \ 119 - CFLAGS_FOR_TARGET="$EXTRA_TARGET_CFLAGS $EXTRA_TARGET_LDFLAGS" \ 120 - CXXFLAGS_FOR_TARGET="$EXTRA_TARGET_CFLAGS $EXTRA_TARGET_LDFLAGS" \ 121 - FLAGS_FOR_TARGET="$EXTRA_TARGET_CFLAGS $EXTRA_TARGET_LDFLAGS" \ 122 - LDFLAGS_FOR_BUILD="$EXTRA_FLAGS $EXTRA_LDFLAGS" \ 123 - LDFLAGS_FOR_TARGET="$EXTRA_TARGET_LDFLAGS $EXTRA_TARGET_LDFLAGS" \ 124 - ) 125 126 - if test -z "$targetConfig"; then 127 - makeFlagsArray+=( \ 128 - BOOT_CFLAGS="$EXTRA_FLAGS $EXTRA_LDFLAGS" \ 129 - BOOT_LDFLAGS="$EXTRA_TARGET_CFLAGS $EXTRA_TARGET_LDFLAGS" \ 130 - ) 131 fi 132 133 - if test -n "$targetConfig" -a "$crossStageStatic" == 1; then 134 # We don't want the gcc build to assume there will be a libc providing 135 # limits.h in this stagae 136 - makeFlagsArray+=( \ 137 - LIMITS_H_TEST=false \ 138 - ) 139 else 140 - makeFlagsArray+=( \ 141 - LIMITS_H_TEST=true \ 142 - ) 143 fi 144 fi 145 146 - if test -n "$targetConfig"; then 147 # The host strip will destroy some important details of the objects 148 dontStrip=1 149 fi 150 151 providedPreConfigure="$preConfigure"; 152 preConfigure() {
··· 1 source $stdenv/setup 2 3 4 + oldOpts="$(shopt -po nounset)" || true 5 + set -euo pipefail 6 + 7 + 8 + export NIX_FIXINC_DUMMY="$NIX_BUILD_TOP/dummy" 9 + mkdir "$NIX_FIXINC_DUMMY" 10 11 12 if test "$staticCompiler" = "1"; then ··· 17 18 19 # GCC interprets empty paths as ".", which we don't want. 20 + if test -z "${CPATH-}"; then unset CPATH; fi 21 + if test -z "${LIBRARY_PATH-}"; then unset LIBRARY_PATH; fi 22 + echo "\$CPATH is \`${CPATH-}'" 23 + echo "\$LIBRARY_PATH is \`${LIBRARY_PATH-}'" 24 25 if test "$noSysDirs" = "1"; then 26 27 + declare \ 28 + EXTRA_BUILD_FLAGS EXTRA_FLAGS EXTRA_TARGET_FLAGS \ 29 + EXTRA_BUILD_LDFLAGS EXTRA_TARGET_LDFLAGS 30 31 + for pre in 'BUILD_' ''; do 32 + curCC="NIX_${pre}CC" 33 + curFIXINC="NIX_${pre}FIXINC_DUMMY" 34 35 + declare -a extraFlags=() extraLDFlags=() 36 + if [[ -e "${!curCC}/nix-support/orig-libc" ]]; then 37 + # Figure out what extra flags to pass to the gcc compilers being 38 + # generated to make sure that they use our glibc. 39 + extraFlags=($(cat "${!curCC}/nix-support/libc-cflags")) 40 + extraLDFlags=($(cat "${!curCC}/nix-support/libc-ldflags") $(cat "${!curCC}/nix-support/libc-ldflags-before" || true)) 41 42 + # The path to the Glibc binaries such as `crti.o'. 43 + glibc_libdir="$(cat "${!curCC}/nix-support/orig-libc")/lib" 44 + glibc_devdir="$(cat "${!curCC}/nix-support/orig-libc-dev")" 45 46 + # Use *real* header files, otherwise a limits.h is generated that 47 + # does not include Glibc's limits.h (notably missing SSIZE_MAX, 48 + # which breaks the build). 49 + declare NIX_${pre}FIXINC_DUMMY="$glibc_devdir/include" 50 else 51 + # Hack: support impure environments. 52 + extraFlags=("-isystem" "/usr/include") 53 + extraLDFlags=("-L/usr/lib64" "-L/usr/lib") 54 + glibc_libdir="/usr/lib" 55 + declare NIX_${pre}FIXINC_DUMMY=/usr/include 56 + fi 57 58 + extraFlags=("-I${!curFIXINC}" 59 + "${extraFlags[@]}") 60 + extraLDFlags=("-L$glibc_libdir" "-rpath" "$glibc_libdir" 61 + "${extraLDFlags[@]}") 62 63 + # BOOT_CFLAGS defaults to `-g -O2'; since we override it below, make 64 + # sure to explictly add them so that files compiled with the bootstrap 65 + # compiler are optimized and (optionally) contain debugging information 66 + # (info "(gccinstall) Building"). 67 + if test -n "${dontStrip-}"; then 68 + extraFlags=("-O2" "-g" "${extraFlags[@]}") 69 + else 70 + # Don't pass `-g' at all; this saves space while building. 71 + extraFlags=("-O2" "${extraFlags[@]}") 72 + fi 73 74 + declare EXTRA_${pre}FLAGS="${extraFlags[*]}" 75 + for i in "${extraLDFlags[@]}"; do 76 + declare EXTRA_${pre}LDFLAGS+=" -Wl,$i" 77 + done 78 + done 79 80 + if test -z "${targetConfig-}"; then 81 + # host = target, so the flags are the same 82 + EXTRA_TARGET_FLAGS="$EXTRA_FLAGS" 83 + EXTRA_TARGET_LDFLAGS="$EXTRA_LDFLAGS" 84 fi 85 86 # CFLAGS_FOR_TARGET are needed for the libstdc++ configure script to find 87 # the startfiles. 88 # FLAGS_FOR_TARGET are needed for the target libraries to receive the -Bxxx 89 # for the startfiles. 90 + makeFlagsArray+=( 91 + "BUILD_SYSTEM_HEADER_DIR=$NIX_BUILD_FIXINC_DUMMY" 92 + "SYSTEM_HEADER_DIR=$NIX_BUILD_FIXINC_DUMMY" 93 + "NATIVE_SYSTEM_HEADER_DIR=$NIX_FIXINC_DUMMY" 94 + 95 + "LDFLAGS_FOR_BUILD=$EXTRA_BUILD_LDFLAGS" 96 + #"LDFLAGS=$EXTRA_LDFLAGS" 97 + "LDFLAGS_FOR_TARGET=$EXTRA_TARGET_LDFLAGS" 98 + 99 + "CFLAGS_FOR_BUILD=$EXTRA_BUILD_FLAGS $EXTRA_BUILD_LDFLAGS" 100 + "CXXFLAGS_FOR_BUILD=$EXTRA_BUILD_FLAGS $EXTRA_BUILD_LDFLAGS" 101 + "FLAGS_FOR_BUILD=$EXTRA_BUILD_FLAGS $EXTRA_BUILD_LDFLAGS" 102 + 103 + # It seems there is a bug in GCC 5 104 + #"CFLAGS=$EXTRA_FLAGS $EXTRA_LDFLAGS" 105 + #"CXXFLAGS=$EXTRA_FLAGS $EXTRA_LDFLAGS" 106 107 + "CFLAGS_FOR_TARGET=$EXTRA_TARGET_FLAGS $EXTRA_TARGET_LDFLAGS" 108 + "CXXFLAGS_FOR_TARGET=$EXTRA_TARGET_FLAGS $EXTRA_TARGET_LDFLAGS" 109 + "FLAGS_FOR_TARGET=$EXTRA_TARGET_FLAGS $EXTRA_TARGET_LDFLAGS" 110 + ) 111 + 112 + if test -z "${targetConfig-}"; then 113 + makeFlagsArray+=( 114 + "BOOT_CFLAGS=$EXTRA_FLAGS $EXTRA_LDFLAGS" 115 + "BOOT_LDFLAGS=$EXTRA_TARGET_FLAGS $EXTRA_TARGET_LDFLAGS" 116 + ) 117 fi 118 119 + if test -n "${targetConfig-}" -a "$crossStageStatic" == 1; then 120 # We don't want the gcc build to assume there will be a libc providing 121 # limits.h in this stagae 122 + makeFlagsArray+=( 123 + 'LIMITS_H_TEST=false' 124 + ) 125 else 126 + makeFlagsArray+=( 127 + 'LIMITS_H_TEST=true' 128 + ) 129 fi 130 fi 131 132 + if test -n "${targetConfig-}"; then 133 # The host strip will destroy some important details of the objects 134 dontStrip=1 135 fi 136 + 137 + eval "$oldOpts" 138 139 providedPreConfigure="$preConfigure"; 140 preConfigure() {
+38 -41
pkgs/development/compilers/gcc/snapshot/default.nix
··· 35 , darwin ? null 36 , flex ? null 37 , buildPlatform, hostPlatform, targetPlatform 38 }: 39 40 assert langJava -> zip != null && unzip != null ··· 310 "--with-mpc=${libmpc}" 311 ] ++ 312 optional (libelf != null) "--with-libelf=${libelf}" ++ 313 314 # Basic configuration 315 [ ··· 360 361 # Ada 362 optional langAda "--enable-libada" ++ 363 - 364 - # Cross-compilation 365 - optional (targetPlatform == hostPlatform) ( 366 - let incDir = if hostPlatform.isDarwin 367 - then "${darwin.usr-include}" 368 - else "${getDev stdenv.cc.libc}/include"; 369 - in "--with-native-system-header-dir=${incDir}" 370 - ) ++ 371 372 platformFlags ++ 373 optional (targetPlatform != hostPlatform) crossConfigureFlags ++ ··· 433 STRIP_FOR_TARGET = "${targetPlatform.config}-strip"; 434 CC_FOR_TARGET = "${targetPlatform.config}-gcc"; 435 CXX_FOR_TARGET = "${targetPlatform.config}-g++"; 436 - # If we are making a cross compiler, targetPlatform != hostPlatform 437 - NIX_CC_CROSS = optionalString (targetPlatform == hostPlatform) builtins.toString stdenv.cc; 438 dontStrip = true; 439 buildFlags = ""; 440 }; 441 442 443 # Needed for the cross compilation to work 444 AR = "ar"; ··· 446 # http://gcc.gnu.org/install/specific.html#x86-64-x-solaris210 447 CC = if stdenv.system == "x86_64-solaris" then "gcc -m64" else "gcc"; 448 449 - # Setting $CPATH and $LIBRARY_PATH to make sure both `gcc' and `xgcc' find 450 - # the library headers and binaries, regarless of the language being 451 - # compiled. 452 - 453 - # Note: When building the Java AWT GTK+ peer, the build system doesn't 454 - # honor `--with-gmp' et al., e.g., when building 455 - # `libjava/classpath/native/jni/java-math/gnu_java_math_GMP.c', so we just 456 - # add them to $CPATH and $LIBRARY_PATH in this case. 457 # 458 # Likewise, the LTO code doesn't find zlib. 459 460 - CPATH = makeSearchPathOutput "dev" "include" ([] 461 ++ optional (zlib != null) zlib 462 ++ optional langJava boehmgc 463 ++ optionals javaAwtGtk xlibs ··· 468 # On GNU/Hurd glibc refers to Mach & Hurd 469 # headers. 470 ++ optionals (libcCross != null && libcCross ? propagatedBuildInputs) 471 - libcCross.propagatedBuildInputs); 472 473 - LIBRARY_PATH = makeLibraryPath ([] 474 ++ optional (zlib != null) zlib 475 ++ optional langJava boehmgc 476 ++ optionals javaAwtGtk xlibs 477 ++ optionals javaAwtGtk [ gmp mpfr ] 478 - ++ optional (libpthread != null) libpthread); 479 480 - EXTRA_TARGET_CFLAGS = 481 - if targetPlatform != hostPlatform && libcCross != null then [ 482 - "-idirafter ${getDev libcCross}/include" 483 - ] 484 - ++ optionals (! crossStageStatic) [ 485 - "-B${libcCross.out}/lib" 486 - ] 487 - else null; 488 489 - EXTRA_TARGET_LDFLAGS = 490 - if targetPlatform != hostPlatform && libcCross != null then [ 491 - "-Wl,-L${libcCross.out}/lib" 492 - ] 493 - ++ (if crossStageStatic then [ 494 "-B${libcCross.out}/lib" 495 ] else [ 496 "-Wl,-rpath,${libcCross.out}/lib" 497 "-Wl,-rpath-link,${libcCross.out}/lib" 498 - ]) 499 - ++ optionals (libpthreadCross != null) [ 500 - "-L${libpthreadCross}/lib" 501 - "-Wl,${libpthreadCross.TARGET_LDFLAGS}" 502 - ] 503 - else null; 504 505 passthru = 506 { inherit langC langCC langObjC langObjCpp langAda langFortran langVhdl langGo version; isGNU = true; };
··· 35 , darwin ? null 36 , flex ? null 37 , buildPlatform, hostPlatform, targetPlatform 38 + , buildPackages 39 }: 40 41 assert langJava -> zip != null && unzip != null ··· 311 "--with-mpc=${libmpc}" 312 ] ++ 313 optional (libelf != null) "--with-libelf=${libelf}" ++ 314 + optional (!(crossMingw && crossStageStatic)) 315 + "--with-native-system-header-dir=${getDev stdenv.cc.libc}/include" ++ 316 317 # Basic configuration 318 [ ··· 363 364 # Ada 365 optional langAda "--enable-libada" ++ 366 367 platformFlags ++ 368 optional (targetPlatform != hostPlatform) crossConfigureFlags ++ ··· 428 STRIP_FOR_TARGET = "${targetPlatform.config}-strip"; 429 CC_FOR_TARGET = "${targetPlatform.config}-gcc"; 430 CXX_FOR_TARGET = "${targetPlatform.config}-g++"; 431 + 432 dontStrip = true; 433 buildFlags = ""; 434 }; 435 436 + NIX_BUILD_CC = buildPackages.stdenv.cc; 437 438 # Needed for the cross compilation to work 439 AR = "ar"; ··· 441 # http://gcc.gnu.org/install/specific.html#x86-64-x-solaris210 442 CC = if stdenv.system == "x86_64-solaris" then "gcc -m64" else "gcc"; 443 444 + # Setting $CPATH and $LIBRARY_PATH to make sure both `gcc' and `xgcc' find the 445 + # library headers and binaries, regarless of the language being compiled. 446 + # 447 + # Note: When building the Java AWT GTK+ peer, the build system doesn't honor 448 + # `--with-gmp' et al., e.g., when building 449 + # `libjava/classpath/native/jni/java-math/gnu_java_math_GMP.c', so we just add 450 + # them to $CPATH and $LIBRARY_PATH in this case. 451 # 452 # Likewise, the LTO code doesn't find zlib. 453 + # 454 + # Cross-compiling, we need gcc not to read ./specs in order to build the g++ 455 + # compiler (after the specs for the cross-gcc are created). Having 456 + # LIBRARY_PATH= makes gcc read the specs from ., and the build breaks. 457 458 + CPATH = optionals (targetPlatform == hostPlatform) (makeSearchPathOutput "dev" "include" ([] 459 ++ optional (zlib != null) zlib 460 ++ optional langJava boehmgc 461 ++ optionals javaAwtGtk xlibs ··· 466 # On GNU/Hurd glibc refers to Mach & Hurd 467 # headers. 468 ++ optionals (libcCross != null && libcCross ? propagatedBuildInputs) 469 + libcCross.propagatedBuildInputs 470 + )); 471 472 + LIBRARY_PATH = optionals (targetPlatform == hostPlatform) (makeLibraryPath ([] 473 ++ optional (zlib != null) zlib 474 ++ optional langJava boehmgc 475 ++ optionals javaAwtGtk xlibs 476 ++ optionals javaAwtGtk [ gmp mpfr ] 477 + ++ optional (libpthread != null) libpthread) 478 + ); 479 480 + EXTRA_TARGET_FLAGS = optionals 481 + (targetPlatform != hostPlatform && libcCross != null) 482 + ([ 483 + "-idirafter ${getDev libcCross}/include" 484 + ] ++ optionals (! crossStageStatic) [ 485 + "-B${libcCross.out}/lib" 486 + ]); 487 488 + EXTRA_TARGET_LDFLAGS = optionals 489 + (targetPlatform != hostPlatform && libcCross != null) 490 + ([ 491 + "-Wl,-L${libcCross.out}/lib" 492 + ] ++ (if crossStageStatic then [ 493 "-B${libcCross.out}/lib" 494 ] else [ 495 "-Wl,-rpath,${libcCross.out}/lib" 496 "-Wl,-rpath-link,${libcCross.out}/lib" 497 + ]) ++ optionals (libpthreadCross != null) [ 498 + "-L${libpthreadCross}/lib" 499 + "-Wl,${libpthreadCross.TARGET_LDFLAGS}" 500 + ]); 501 502 passthru = 503 { inherit langC langCC langObjC langObjCpp langAda langFortran langVhdl langGo version; isGNU = true; };
+6
pkgs/development/interpreters/perl/default.nix
··· 35 [ # Do not look in /usr etc. for dependencies. 36 ./no-sys-dirs.patch 37 ] 38 ++ optional stdenv.isSunOS ./ld-shared.patch 39 ++ optional stdenv.isDarwin ./cpp-precomp.patch 40 ++ optional (stdenv.isDarwin && versionAtLeast version "5.24") ./sw_vers.patch;
··· 35 [ # Do not look in /usr etc. for dependencies. 36 ./no-sys-dirs.patch 37 ] 38 + ++ optional (versionAtLeast version "5.24") ( 39 + # Fix parallel building: https://rt.perl.org/Public/Bug/Display.html?id=132360 40 + fetchurlBoot { 41 + url = "https://rt.perl.org/Public/Ticket/Attachment/1502646/807252/0001-Fix-missing-build-dependency-for-pods.patch"; 42 + sha256 = "1bb4mldfp8kq1scv480wm64n2jdsqa3ar46cjp1mjpby8h5dr2r0"; 43 + }) 44 ++ optional stdenv.isSunOS ./ld-shared.patch 45 ++ optional stdenv.isDarwin ./cpp-precomp.patch 46 ++ optional (stdenv.isDarwin && versionAtLeast version "5.24") ./sw_vers.patch;
+4 -4
pkgs/development/libraries/at-spi2-atk/default.nix
··· 3 4 stdenv.mkDerivation rec { 5 versionMajor = "2.26"; 6 - versionMinor = "0"; 7 moduleName = "at-spi2-atk"; 8 name = "${moduleName}-${versionMajor}.${versionMinor}"; 9 10 src = fetchurl { 11 url = "mirror://gnome/sources/${moduleName}/${versionMajor}/${name}.tar.xz"; 12 - sha256 = "d25e528e1406a10c7d9b675aa15e638bcbf0a122ca3681f655a30cce83272fb9"; 13 }; 14 15 - nativeBuildInputs = [ pkgconfig ]; 16 buildInputs = [ python popt atk libX11 libICE xorg.libXtst libXi 17 - intltool dbus_glib at_spi2_core libSM ]; 18 19 meta = with stdenv.lib; { 20 platforms = platforms.unix;
··· 3 4 stdenv.mkDerivation rec { 5 versionMajor = "2.26"; 6 + versionMinor = "1"; 7 moduleName = "at-spi2-atk"; 8 name = "${moduleName}-${versionMajor}.${versionMinor}"; 9 10 src = fetchurl { 11 url = "mirror://gnome/sources/${moduleName}/${versionMajor}/${name}.tar.xz"; 12 + sha256 = "0x9vc99ni46fg5dzlx67vbw0zqffr24gz8jvbdxbmzyvc5xw5w5l"; 13 }; 14 15 + nativeBuildInputs = [ pkgconfig intltool ]; 16 buildInputs = [ python popt atk libX11 libICE xorg.libXtst libXi 17 + dbus_glib at_spi2_core libSM ]; 18 19 meta = with stdenv.lib; { 20 platforms = platforms.unix;
+5 -6
pkgs/development/libraries/at-spi2-core/default.nix
··· 1 - { stdenv, fetchurl, python, pkgconfig, popt, intltool, dbus_glib 2 , libX11, xextproto, libSM, libICE, libXtst, libXi, gobjectIntrospection }: 3 4 stdenv.mkDerivation rec { 5 versionMajor = "2.26"; 6 - versionMinor = "0"; 7 moduleName = "at-spi2-core"; 8 name = "${moduleName}-${versionMajor}.${versionMinor}"; 9 10 src = fetchurl { 11 url = "mirror://gnome/sources/${moduleName}/${versionMajor}/${name}.tar.xz"; 12 - sha256 = "511568a65fda11fdd5ba5d4adfd48d5d76810d0e6ba4f7460f1b2ec0dbbbc337"; 13 }; 14 15 outputs = [ "out" "dev" ]; 16 17 - nativeBuildInputs = [ pkgconfig ]; 18 buildInputs = [ 19 - python popt intltool dbus_glib 20 libX11 xextproto libSM libICE libXtst libXi 21 - gobjectIntrospection 22 ]; 23 24 # ToDo: on non-NixOS we create a symlink from there?
··· 1 + { stdenv, fetchurl, python, pkgconfig, popt, gettext, dbus_glib 2 , libX11, xextproto, libSM, libICE, libXtst, libXi, gobjectIntrospection }: 3 4 stdenv.mkDerivation rec { 5 versionMajor = "2.26"; 6 + versionMinor = "2"; 7 moduleName = "at-spi2-core"; 8 name = "${moduleName}-${versionMajor}.${versionMinor}"; 9 10 src = fetchurl { 11 url = "mirror://gnome/sources/${moduleName}/${versionMajor}/${name}.tar.xz"; 12 + sha256 = "0596ghkamkxgv08r4a1pdhm06qd5zzgcfqsv64038w9xbvghq3n8"; 13 }; 14 15 outputs = [ "out" "dev" ]; 16 17 + nativeBuildInputs = [ pkgconfig gettext gobjectIntrospection ]; 18 buildInputs = [ 19 + python popt dbus_glib 20 libX11 xextproto libSM libICE libXtst libXi 21 ]; 22 23 # ToDo: on non-NixOS we create a symlink from there?
+9 -4
pkgs/development/libraries/atk/default.nix
··· 2 3 let 4 ver_maj = "2.26"; 5 - ver_min = "0"; 6 in 7 stdenv.mkDerivation rec { 8 name = "atk-${ver_maj}.${ver_min}"; 9 10 src = fetchurl { 11 url = "mirror://gnome/sources/atk/${ver_maj}/${name}.tar.xz"; 12 - sha256 = "eafe49d5c4546cb723ec98053290d7e0b8d85b3fdb123938213acb7bb4178827"; 13 }; 14 15 enableParallelBuilding = true; ··· 20 21 nativeBuildInputs = [ pkgconfig perl ]; 22 23 - propagatedBuildInputs = [ glib gobjectIntrospection /*ToDo: why propagate*/ ]; 24 25 - #doCheck = true; # no checks in there (2.22.0) 26 27 meta = { 28 description = "Accessibility toolkit";
··· 2 3 let 4 ver_maj = "2.26"; 5 + ver_min = "1"; 6 in 7 stdenv.mkDerivation rec { 8 name = "atk-${ver_maj}.${ver_min}"; 9 10 src = fetchurl { 11 url = "mirror://gnome/sources/atk/${ver_maj}/${name}.tar.xz"; 12 + sha256 = "1jwpx8az0iifw176dc2hl4mmg6gvxzxdkd1qvg4ds7c5hdmzy07g"; 13 }; 14 15 enableParallelBuilding = true; ··· 20 21 nativeBuildInputs = [ pkgconfig perl ]; 22 23 + propagatedBuildInputs = [ 24 + # Required by atk.pc 25 + glib 26 + # TODO: Why propagate? 27 + gobjectIntrospection 28 + ]; 29 30 + doCheck = true; 31 32 meta = { 33 description = "Accessibility toolkit";
+6 -3
pkgs/development/libraries/babl/default.nix
··· 1 { stdenv, fetchurl }: 2 3 stdenv.mkDerivation rec { 4 - name = "babl-0.1.34"; 5 6 src = fetchurl { 7 url = "http://ftp.gtk.org/pub/babl/0.1/${name}.tar.bz2"; 8 - sha256 = "0nwakj313l2dh5npx18avkg4z17i2prkxbl6vj547a08n6ry1gsy"; 9 }; 10 11 - meta = with stdenv.lib; { 12 description = "Image pixel format conversion library"; 13 homepage = http://gegl.org/babl/; 14 license = licenses.gpl3; 15 platforms = platforms.unix; 16 }; 17 }
··· 1 { stdenv, fetchurl }: 2 3 stdenv.mkDerivation rec { 4 + name = "babl-0.1.38"; 5 6 src = fetchurl { 7 url = "http://ftp.gtk.org/pub/babl/0.1/${name}.tar.bz2"; 8 + sha256 = "11pfbyzq20596p9sgwraxspg3djg1jzz6wvz4bapf0yyr97jiyd0"; 9 }; 10 11 + doCheck = true; 12 + 13 + meta = with stdenv.lib; { 14 description = "Image pixel format conversion library"; 15 homepage = http://gegl.org/babl/; 16 license = licenses.gpl3; 17 + maintainers = with stdenv.lib.maintainers; [ jtojnar ]; 18 platforms = platforms.unix; 19 }; 20 }
+4 -4
pkgs/development/libraries/cairomm/default.nix
··· 1 { fetchurl, stdenv, pkgconfig, darwin, cairo, xlibsWrapper, fontconfig, freetype, libsigcxx }: 2 let 3 ver_maj = "1.12"; 4 - ver_min = "0"; 5 in 6 stdenv.mkDerivation rec { 7 name = "cairomm-${ver_maj}.${ver_min}"; 8 9 src = fetchurl { 10 - #url = "http://www.cairographics.org/releases/${name}.tar.gz"; 11 # gnome doesn't have the latest version ATM; beware: same name but different hash 12 - url = "mirror://gnome/sources/cairomm/${ver_maj}/${name}.tar.xz"; 13 - sha256 = "a54ada8394a86182525c0762e6f50db6b9212a2109280d13ec6a0b29bfd1afe6"; 14 }; 15 16 outputs = [ "out" "dev" ];
··· 1 { fetchurl, stdenv, pkgconfig, darwin, cairo, xlibsWrapper, fontconfig, freetype, libsigcxx }: 2 let 3 ver_maj = "1.12"; 4 + ver_min = "2"; 5 in 6 stdenv.mkDerivation rec { 7 name = "cairomm-${ver_maj}.${ver_min}"; 8 9 src = fetchurl { 10 + url = "http://www.cairographics.org/releases/${name}.tar.gz"; 11 # gnome doesn't have the latest version ATM; beware: same name but different hash 12 + # url = "mirror://gnome/sources/cairomm/${ver_maj}/${name}.tar.xz"; 13 + sha256 = "16fmigxsaz85c3lgcls7biwyz8zy8c8h3jndfm54cxxas3a7zi25"; 14 }; 15 16 outputs = [ "out" "dev" ];
+2 -2
pkgs/development/libraries/fftw/default.nix
··· 5 assert elem precision [ "single" "double" "long-double" "quad-precision" ]; 6 7 let 8 - version = "3.3.6-pl1"; 9 withDoc = stdenv.cc.isGNU; 10 in 11 ··· 14 15 src = fetchurl { 16 url = "ftp://ftp.fftw.org/pub/fftw/fftw-${version}.tar.gz"; 17 - sha256 = "0g8qk98lgq770ixdf7n36yd5xjsgm2v3wzvnphwmhy6r4y2amx0y"; 18 }; 19 20 outputs = [ "out" "dev" "man" ]
··· 5 assert elem precision [ "single" "double" "long-double" "quad-precision" ]; 6 7 let 8 + version = "3.3.7"; 9 withDoc = stdenv.cc.isGNU; 10 in 11 ··· 14 15 src = fetchurl { 16 url = "ftp://ftp.fftw.org/pub/fftw/fftw-${version}.tar.gz"; 17 + sha256 = "0wsms8narnbhfsa8chdflv2j9hzspvflblnqdn7hw8x5xdzrnq1v"; 18 }; 19 20 outputs = [ "out" "dev" "man" ]
+12 -6
pkgs/development/libraries/gegl/3.0.nix
··· 1 { stdenv, fetchurl, pkgconfig, glib, babl, libpng, cairo, libjpeg, which 2 - , librsvg, pango, gtk, bzip2, json_glib, intltool, autoreconfHook, libraw }: 3 4 stdenv.mkDerivation rec { 5 - name = "gegl-0.3.18"; 6 7 src = fetchurl { 8 url = "http://download.gimp.org/pub/gegl/0.3/${name}.tar.bz2"; 9 - sha256 = "1ywihjav9yhmsvbrdyx9c5q71rqdkjg8l66ywca6s4yydvr8x1fp"; 10 }; 11 12 hardeningDisable = [ "format" ]; ··· 14 # needs fonts otherwise don't know how to pass them 15 configureFlags = "--disable-docs"; 16 17 buildInputs = [ 18 - babl libpng cairo libjpeg librsvg pango gtk bzip2 which json_glib intltool 19 - libraw 20 ]; 21 22 - nativeBuildInputs = [ pkgconfig autoreconfHook ]; 23 24 meta = { 25 description = "Graph-based image processing framework"; 26 homepage = http://www.gegl.org; 27 license = stdenv.lib.licenses.gpl3; 28 platforms = stdenv.lib.platforms.linux; 29 }; 30 }
··· 1 { stdenv, fetchurl, pkgconfig, glib, babl, libpng, cairo, libjpeg, which 2 + , librsvg, pango, gtk, bzip2, json_glib, intltool, autoreconfHook, libraw 3 + , libwebp, gnome3 }: 4 5 stdenv.mkDerivation rec { 6 + name = "gegl-0.3.24"; 7 8 src = fetchurl { 9 url = "http://download.gimp.org/pub/gegl/0.3/${name}.tar.bz2"; 10 + sha256 = "0x4xjca05fbncy49vjs5nq3ria6j8wlpiq6yldkv0r6qcb18p80s"; 11 }; 12 13 hardeningDisable = [ "format" ]; ··· 15 # needs fonts otherwise don't know how to pass them 16 configureFlags = "--disable-docs"; 17 18 + enableParallelBuilding = true; 19 + 20 + doCheck = true; 21 + 22 buildInputs = [ 23 + babl libpng cairo libjpeg librsvg pango gtk bzip2 json_glib 24 + libraw libwebp gnome3.gexiv2 25 ]; 26 27 + nativeBuildInputs = [ pkgconfig intltool which autoreconfHook ]; 28 29 meta = { 30 description = "Graph-based image processing framework"; 31 homepage = http://www.gegl.org; 32 license = stdenv.lib.licenses.gpl3; 33 + maintainers = with stdenv.lib.maintainers; [ jtojnar ]; 34 platforms = stdenv.lib.platforms.linux; 35 }; 36 }
+2 -2
pkgs/development/libraries/glib-networking/default.nix
··· 3 4 let 5 ver_maj = "2.54"; 6 - ver_min = "0"; 7 in 8 stdenv.mkDerivation rec { 9 name = "glib-networking-${ver_maj}.${ver_min}"; 10 11 src = fetchurl { 12 url = "mirror://gnome/sources/glib-networking/${ver_maj}/${name}.tar.xz"; 13 - sha256 = "5961b3779080b72314b373ff5d4790eb7e41b75ca91816ad7a81ef32922f7096"; 14 }; 15 16 outputs = [ "out" "dev" ]; # to deal with propagatedBuildInputs
··· 3 4 let 5 ver_maj = "2.54"; 6 + ver_min = "1"; 7 in 8 stdenv.mkDerivation rec { 9 name = "glib-networking-${ver_maj}.${ver_min}"; 10 11 src = fetchurl { 12 url = "mirror://gnome/sources/glib-networking/${ver_maj}/${name}.tar.xz"; 13 + sha256 = "0bq16m9nh3gcz9x2fvygr0iwxd2pxcbrm3lj3kihsnh1afv8g9za"; 14 }; 15 16 outputs = [ "out" "dev" ]; # to deal with propagatedBuildInputs
+5 -3
pkgs/development/libraries/gstreamer/bad/default.nix
··· 23 24 in 25 stdenv.mkDerivation rec { 26 - name = "gst-plugins-bad-1.12.2"; 27 28 meta = with stdenv.lib; { 29 description = "Gstreamer Bad Plugins"; ··· 39 }; 40 41 patchPhase = '' 42 - sed -i 's/openjpeg-2.1/openjpeg-${openJpegVersion}/' ext/openjpeg/* 43 ''; 44 45 src = fetchurl { 46 url = "${meta.homepage}/src/gst-plugins-bad/${name}.tar.xz"; 47 - sha256 = "0dwyq03g2m0p16dwx8q5qvjn5x9ia72h21sf87mp97gmwkfpwb4w"; 48 }; 49 50 outputs = [ "out" "dev" ]; ··· 70 ++ optional (!stdenv.isDarwin) wildmidi; 71 72 LDFLAGS = optionalString stdenv.isDarwin "-lintl"; 73 }
··· 23 24 in 25 stdenv.mkDerivation rec { 26 + name = "gst-plugins-bad-1.12.3"; 27 28 meta = with stdenv.lib; { 29 description = "Gstreamer Bad Plugins"; ··· 39 }; 40 41 patchPhase = '' 42 + sed -i 's/openjpeg-2.2/openjpeg-${openJpegVersion}/' ext/openjpeg/* 43 ''; 44 45 src = fetchurl { 46 url = "${meta.homepage}/src/gst-plugins-bad/${name}.tar.xz"; 47 + sha256 = "1v5z3i5ha20gmbb3r9dwsaaspv5fm1jfzlzwlzqx1gjj31v5kl1n"; 48 }; 49 50 outputs = [ "out" "dev" ]; ··· 70 ++ optional (!stdenv.isDarwin) wildmidi; 71 72 LDFLAGS = optionalString stdenv.isDarwin "-lintl"; 73 + 74 + enableParallelBuilding = true; 75 }
+2 -2
pkgs/development/libraries/gstreamer/base/default.nix
··· 4 }: 5 6 stdenv.mkDerivation rec { 7 - name = "gst-plugins-base-1.12.2"; 8 9 meta = { 10 description = "Base plugins and helper libraries"; ··· 15 16 src = fetchurl { 17 url = "${meta.homepage}/src/gst-plugins-base/${name}.tar.xz"; 18 - sha256 = "0x86a7aph0y6gyq178plvwvbbyhkfb3hf0gadx9sk5z1mzixqrsh"; 19 }; 20 21 outputs = [ "out" "dev" ];
··· 4 }: 5 6 stdenv.mkDerivation rec { 7 + name = "gst-plugins-base-1.12.3"; 8 9 meta = { 10 description = "Base plugins and helper libraries"; ··· 15 16 src = fetchurl { 17 url = "${meta.homepage}/src/gst-plugins-base/${name}.tar.xz"; 18 + sha256 = "19ffwdch7m777ragmwpy6prqmfb742ym1n3ki40s0zyki627plyk"; 19 }; 20 21 outputs = [ "out" "dev" ];
+2 -2
pkgs/development/libraries/gstreamer/core/default.nix
··· 4 }: 5 6 stdenv.mkDerivation rec { 7 - name = "gstreamer-1.12.2"; 8 9 meta = { 10 description = "Open source multimedia framework"; ··· 16 17 src = fetchurl { 18 url = "${meta.homepage}/src/gstreamer/${name}.tar.xz"; 19 - sha256 = "1fllz7n58lavyy4nh64xc7izd4ffhl12a2ff0yg4z67al8wkzplz"; 20 }; 21 22 outputs = [ "out" "dev" ];
··· 4 }: 5 6 stdenv.mkDerivation rec { 7 + name = "gstreamer-1.12.3"; 8 9 meta = { 10 description = "Open source multimedia framework"; ··· 16 17 src = fetchurl { 18 url = "${meta.homepage}/src/gstreamer/${name}.tar.xz"; 19 + sha256 = "0vi1g8rmmsnd630ds3jwv2iph46ll8y07fzf04mz15q88j9g926k"; 20 }; 21 22 outputs = [ "out" "dev" ];
+1 -1
pkgs/development/libraries/gstreamer/ges/default.nix
··· 3 }: 4 5 stdenv.mkDerivation rec { 6 - name = "gstreamer-editing-services-1.12.2"; 7 8 meta = with stdenv.lib; { 9 description = "Library for creation of audio/video non-linear editors";
··· 3 }: 4 5 stdenv.mkDerivation rec { 6 + name = "gstreamer-editing-services-1.12.3"; 7 8 meta = with stdenv.lib; { 9 description = "Library for creation of audio/video non-linear editors";
+2 -2
pkgs/development/libraries/gstreamer/good/default.nix
··· 11 inherit (stdenv.lib) optionals optionalString; 12 in 13 stdenv.mkDerivation rec { 14 - name = "gst-plugins-good-1.12.2"; 15 16 meta = with stdenv.lib; { 17 description = "Gstreamer Good Plugins"; ··· 27 28 src = fetchurl { 29 url = "${meta.homepage}/src/gst-plugins-good/${name}.tar.xz"; 30 - sha256 = "15pfw54fsh9s9xwrnbap4z4njwgqdfvq52k562d2hc5b11rfx4am"; 31 }; 32 33 outputs = [ "out" "dev" ];
··· 11 inherit (stdenv.lib) optionals optionalString; 12 in 13 stdenv.mkDerivation rec { 14 + name = "gst-plugins-good-1.12.3"; 15 16 meta = with stdenv.lib; { 17 description = "Gstreamer Good Plugins"; ··· 27 28 src = fetchurl { 29 url = "${meta.homepage}/src/gst-plugins-good/${name}.tar.xz"; 30 + sha256 = "00sznj1sl97fqpn6j8ngps04clvxp8h8yhw6lvszx4b855wz9rqk"; 31 }; 32 33 outputs = [ "out" "dev" ];
+2 -2
pkgs/development/libraries/gstreamer/libav/default.nix
··· 9 assert withSystemLibav -> libav != null; 10 11 stdenv.mkDerivation rec { 12 - name = "gst-libav-1.12.2"; 13 14 meta = { 15 homepage = https://gstreamer.freedesktop.org; ··· 19 20 src = fetchurl { 21 url = "${meta.homepage}/src/gst-libav/${name}.tar.xz"; 22 - sha256 = "1crdahkjm23byg1awcrjkmgfbalfpvvac7h7whm6b2r1pfwkbdsv"; 23 }; 24 25 outputs = [ "out" "dev" ];
··· 9 assert withSystemLibav -> libav != null; 10 11 stdenv.mkDerivation rec { 12 + name = "gst-libav-1.12.3"; 13 14 meta = { 15 homepage = https://gstreamer.freedesktop.org; ··· 19 20 src = fetchurl { 21 url = "${meta.homepage}/src/gst-libav/${name}.tar.xz"; 22 + sha256 = "0l4nc6ikdx49l7bdrk3bd9p3pzry8a328r22zg48gyzpnv5ghph1"; 23 }; 24 25 outputs = [ "out" "dev" ];
+2 -2
pkgs/development/libraries/gstreamer/ugly/default.nix
··· 5 }: 6 7 stdenv.mkDerivation rec { 8 - name = "gst-plugins-ugly-1.12.2"; 9 10 meta = with stdenv.lib; { 11 description = "Gstreamer Ugly Plugins"; ··· 22 23 src = fetchurl { 24 url = "${meta.homepage}/src/gst-plugins-ugly/${name}.tar.xz"; 25 - sha256 = "0rplyp1qk359c97ig9i2vc1v34g92khd8dslwfipva1ypwmr9hqw"; 26 }; 27 28 outputs = [ "out" "dev" ];
··· 5 }: 6 7 stdenv.mkDerivation rec { 8 + name = "gst-plugins-ugly-1.12.3"; 9 10 meta = with stdenv.lib; { 11 description = "Gstreamer Ugly Plugins"; ··· 22 23 src = fetchurl { 24 url = "${meta.homepage}/src/gst-plugins-ugly/${name}.tar.xz"; 25 + sha256 = "0lh00rg26iy5lr5al23lxsyncjqkgzph1bzkrgp8x9sfr62ab378"; 26 }; 27 28 outputs = [ "out" "dev" ];
+1 -1
pkgs/development/libraries/gstreamer/vaapi/default.nix
··· 5 6 stdenv.mkDerivation rec { 7 name = "gst-vaapi-${version}"; 8 - version = "1.12.2"; 9 10 src = fetchurl { 11 url = "${meta.homepage}/src/gstreamer-vaapi/gstreamer-vaapi-${version}.tar.xz";
··· 5 6 stdenv.mkDerivation rec { 7 name = "gst-vaapi-${version}"; 8 + version = "1.12.3"; 9 10 src = fetchurl { 11 url = "${meta.homepage}/src/gstreamer-vaapi/gstreamer-vaapi-${version}.tar.xz";
+1 -1
pkgs/development/libraries/gstreamer/validate/default.nix
··· 3 }: 4 5 stdenv.mkDerivation rec { 6 - name = "gst-validate-1.12.2"; 7 8 meta = { 9 description = "Integration testing infrastructure for the GStreamer framework";
··· 3 }: 4 5 stdenv.mkDerivation rec { 6 + name = "gst-validate-1.12.3"; 7 8 meta = { 9 description = "Integration testing infrastructure for the GStreamer framework";
+3 -3
pkgs/development/libraries/libaccounts-glib/default.nix
··· 1 { stdenv, fetchFromGitLab, autoconf, automake, glib 2 , gtk_doc, libtool, libxml2, libxslt, pkgconfig, sqlite }: 3 4 - let version = "1.18"; in 5 stdenv.mkDerivation rec { 6 name = "libaccounts-glib-${version}"; 7 8 src = fetchFromGitLab { 9 - sha256 = "02p23vrqhw2l2w6nrwlk4bqxf7z9kplkc2d43716x9xakxr291km"; 10 - rev = version; 11 repo = "libaccounts-glib"; 12 owner = "accounts-sso"; 13 };
··· 1 { stdenv, fetchFromGitLab, autoconf, automake, glib 2 , gtk_doc, libtool, libxml2, libxslt, pkgconfig, sqlite }: 3 4 + let version = "1.23"; in 5 stdenv.mkDerivation rec { 6 name = "libaccounts-glib-${version}"; 7 8 src = fetchFromGitLab { 9 + sha256 = "11cvl3ch0y93756k90mw1swqv0ylr8qgalmvcn5yari8z4sg6cgg"; 10 + rev = "VERSION_${version}"; 11 repo = "libaccounts-glib"; 12 owner = "accounts-sso"; 13 };
+2 -2
pkgs/development/libraries/libinput/default.nix
··· 16 with stdenv.lib; 17 stdenv.mkDerivation rec { 18 name = "libinput-${version}"; 19 - version = "1.9.2"; 20 21 src = fetchurl { 22 url = "http://www.freedesktop.org/software/libinput/${name}.tar.xz"; 23 - sha256 = "0fyy050hzk47g7305lx5pgyh2abvq7qs4xd3nn1is7zy3wj56s6x"; 24 }; 25 26 outputs = [ "out" "dev" ];
··· 16 with stdenv.lib; 17 stdenv.mkDerivation rec { 18 name = "libinput-${version}"; 19 + version = "1.9.3"; 20 21 src = fetchurl { 22 url = "http://www.freedesktop.org/software/libinput/${name}.tar.xz"; 23 + sha256 = "09wkc5qqk1k2a68cwfy4x853z8z35wf2qkijh66kacsvc2fjq394"; 24 }; 25 26 outputs = [ "out" "dev" ];
+2 -2
pkgs/development/libraries/libmicrohttpd/default.nix
··· 2 3 stdenv.mkDerivation rec { 4 name = "libmicrohttpd-${version}"; 5 - version = "0.9.57"; 6 7 src = fetchurl { 8 url = "mirror://gnu/libmicrohttpd/${name}.tar.gz"; 9 - sha256 = "0kmgkk9sjg1n3q7rbzw5y4qmgh51zn5qi2j69gbqmr6phxjaghfy"; 10 }; 11 12 outputs = [ "out" "dev" "devdoc" "info" ];
··· 2 3 stdenv.mkDerivation rec { 4 name = "libmicrohttpd-${version}"; 5 + version = "0.9.58"; 6 7 src = fetchurl { 8 url = "mirror://gnu/libmicrohttpd/${name}.tar.gz"; 9 + sha256 = "1wq17qvizis7bsyvyw1gnfycvivssncngziddnyrbzv2dhvy24bs"; 10 }; 11 12 outputs = [ "out" "dev" "devdoc" "info" ];
+2 -2
pkgs/development/libraries/openssl/default.nix
··· 107 in { 108 109 openssl_1_0_2 = common { 110 - version = "1.0.2m"; 111 - sha256 = "03vvlfnxx4lhxc83ikfdl6jqph4h52y7lb7li03va6dkqrgg2vwc"; 112 }; 113 114 openssl_1_1_0 = common {
··· 107 in { 108 109 openssl_1_0_2 = common { 110 + version = "1.0.2n"; 111 + sha256 = "1zm82pyq5a9jm10q6iv7d3dih3xwjds4x30fqph3k317byvsn2rp"; 112 }; 113 114 openssl_1_1_0 = common {
+5
pkgs/development/libraries/qt-4.x/4.8/qmake-hook.sh
··· 3 4 $QMAKE PREFIX=$out $qmakeFlags 5 6 runHook postConfigure 7 } 8
··· 3 4 $QMAKE PREFIX=$out $qmakeFlags 5 6 + if ! [[ -v enableParallelBuilding ]]; then 7 + enableParallelBuilding=1 8 + echo "qmake4Hook: enabled parallel building" 9 + fi 10 + 11 runHook postConfigure 12 } 13
+5
pkgs/development/libraries/qt-5/hooks/qmake-hook.sh
··· 10 NIX_OUTPUT_PLUGIN=${!outputBin}/${qtPluginPrefix:?} \ 11 $qmakeFlags 12 13 runHook postConfigure 14 } 15
··· 10 NIX_OUTPUT_PLUGIN=${!outputBin}/${qtPluginPrefix:?} \ 11 $qmakeFlags 12 13 + if ! [[ -v enableParallelBuilding ]]; then 14 + enableParallelBuilding=1 15 + echo "qmake: enabled parallel building" 16 + fi 17 + 18 runHook postConfigure 19 } 20
+26
pkgs/development/python-modules/TurboCheetah/default.nix
···
··· 1 + { lib 2 + , buildPythonPackage 3 + , fetchPypi 4 + , cheetah 5 + , nose 6 + }: 7 + 8 + buildPythonPackage rec { 9 + pname = "TurboCheetah"; 10 + version = "1.0"; 11 + 12 + src = fetchPypi { 13 + inherit pname version; 14 + sha256 = "9e4c7ecb0d061bfb58281363ee1b09337083f013a8b4d0355326a5d8668f450c"; 15 + }; 16 + 17 + propagatedBuildInputs = [ cheetah ]; 18 + 19 + checkInputs = [ nose ]; 20 + 21 + meta = { 22 + description = "TurboGears plugin to support use of Cheetah templates"; 23 + homepage = http://docs.turbogears.org/TurboCheetah; 24 + license = lib.licenses.mit; 25 + }; 26 + }
+26
pkgs/development/python-modules/backports_shutil_get_terminal_size/default.nix
···
··· 1 + { lib 2 + , buildPythonPackage 3 + , fetchPypi 4 + , pytest 5 + , pythonOlder 6 + }: 7 + 8 + if !(pythonOlder "3.3") then null else buildPythonPackage rec { 9 + pname = "backports.shutil_get_terminal_size"; 10 + version = "1.0.0"; 11 + 12 + src = fetchPypi { 13 + inherit pname version; 14 + sha256 = "713e7a8228ae80341c70586d1cc0a8caa5207346927e23d09dcbcaf18eadec80"; 15 + }; 16 + 17 + checkInputs = [ 18 + pytest 19 + ]; 20 + 21 + meta = { 22 + description = "A backport of the get_terminal_size function from Python 3.3’s shutil."; 23 + homepage = https://github.com/chrippa/backports.shutil_get_terminal_size; 24 + license = with lib.licenses; [ mit ]; 25 + }; 26 + }
+2 -2
pkgs/development/python-modules/bootstrapped-pip/default.nix
··· 9 }; 10 setuptools_source = fetchPypi { 11 pname = "setuptools"; 12 - version = "36.7.1"; 13 format = "wheel"; 14 - sha256 = "eaacfa35eb11199d0b017df416421781a75209817bff3f94820556e36c49bd77"; 15 }; 16 17 # TODO: Shouldn't be necessary anymore for pip > 9.0.1!
··· 9 }; 10 setuptools_source = fetchPypi { 11 pname = "setuptools"; 12 + version = "38.2.3"; 13 format = "wheel"; 14 + sha256 = "0c4j3jiiwc0h1bdv4xklinp90spgvgiv5fsxp119hif9934nfxfs"; 15 }; 16 17 # TODO: Shouldn't be necessary anymore for pip > 9.0.1!
+33
pkgs/development/python-modules/cheetah/default.nix
···
··· 1 + { lib 2 + , buildPythonPackage 3 + , fetchPypi 4 + , markdown 5 + , isPy3k 6 + , TurboCheetah 7 + }: 8 + 9 + buildPythonPackage rec { 10 + pname = "cheetah"; 11 + version = "2.4.4"; 12 + 13 + disabled = isPy3k; 14 + 15 + src = fetchPypi { 16 + inherit pname version; 17 + sha256 = "be308229f0c1e5e5af4f27d7ee06d90bb19e6af3059794e5fd536a6f29a9b550"; 18 + }; 19 + 20 + propagatedBuildInputs = [ markdown ]; 21 + 22 + doCheck = false; # Circular dependency 23 + 24 + checkInputs = [ 25 + TurboCheetah 26 + ]; 27 + 28 + meta = { 29 + homepage = http://www.cheetahtemplate.org/; 30 + description = "A template engine and code generation tool"; 31 + license = lib.licenses.mit; 32 + }; 33 + }
+4 -1
pkgs/development/python-modules/contextlib2/default.nix
··· 1 { lib 2 , buildPythonPackage 3 , fetchPypi 4 }: 5 6 buildPythonPackage rec { ··· 13 sha256 = "509f9419ee91cdd00ba34443217d5ca51f5a364a404e1dce9e8979cea969ca48"; 14 }; 15 16 meta = { 17 description = "Backports and enhancements for the contextlib module"; 18 homepage = http://contextlib2.readthedocs.org/; 19 license = lib.licenses.psfl; 20 }; 21 - }
··· 1 { lib 2 , buildPythonPackage 3 , fetchPypi 4 + , unittest2 5 }: 6 7 buildPythonPackage rec { ··· 14 sha256 = "509f9419ee91cdd00ba34443217d5ca51f5a364a404e1dce9e8979cea969ca48"; 15 }; 16 17 + checkInputs = [ unittest2 ]; 18 + 19 meta = { 20 description = "Backports and enhancements for the contextlib module"; 21 homepage = http://contextlib2.readthedocs.org/; 22 license = lib.licenses.psfl; 23 }; 24 + }
+1 -1
pkgs/development/python-modules/gst-python/default.nix
··· 4 5 stdenv.mkDerivation rec { 6 pname = "gst-python"; 7 - version = "1.12.2"; 8 name = "${pname}-${version}"; 9 10 src = fetchurl {
··· 4 5 stdenv.mkDerivation rec { 6 pname = "gst-python"; 7 + version = "1.12.3"; 8 name = "${pname}-${version}"; 9 10 src = fetchurl {
+31
pkgs/development/python-modules/pathlib2/default.nix
···
··· 1 + { lib 2 + , buildPythonPackage 3 + , fetchPypi 4 + , six 5 + , pythonOlder 6 + , scandir 7 + , glibcLocales 8 + }: 9 + 10 + if !(pythonOlder "3.4") then null else buildPythonPackage rec { 11 + pname = "pathlib2"; 12 + version = "2.2.1"; 13 + 14 + src = fetchPypi { 15 + inherit pname version; 16 + sha256 = "ce9007df617ef6b7bd8a31cd2089ed0c1fed1f7c23cf2bf1ba140b3dd563175d"; 17 + }; 18 + 19 + propagatedBuildInputs = [ six ] ++ lib.optional (pythonOlder "3.5") scandir; 20 + checkInputs = [ glibcLocales ]; 21 + 22 + preCheck = '' 23 + export LC_ALL="en_US.UTF-8" 24 + ''; 25 + 26 + meta = { 27 + description = "This module offers classes representing filesystem paths with semantics appropriate for different operating systems."; 28 + homepage = https://pypi.python.org/pypi/pathlib2/; 29 + license = with lib.licenses; [ mit ]; 30 + }; 31 + }
+2 -2
pkgs/development/python-modules/setuptools/default.nix
··· 8 # Should use buildPythonPackage here somehow 9 stdenv.mkDerivation rec { 10 pname = "setuptools"; 11 - version = "36.7.1"; 12 name = "${python.libPrefix}-${pname}-${version}"; 13 14 src = fetchPypi { 15 inherit pname version; 16 extension = "zip"; 17 - sha256 = "543becf5d33d8989dc5222403997488e9dc3872bdecdabb0f57184ca253ec1e8"; 18 }; 19 20 buildInputs = [ python wrapPython unzip ];
··· 8 # Should use buildPythonPackage here somehow 9 stdenv.mkDerivation rec { 10 pname = "setuptools"; 11 + version = "38.2.3"; 12 name = "${python.libPrefix}-${pname}-${version}"; 13 14 src = fetchPypi { 15 inherit pname version; 16 extension = "zip"; 17 + sha256 = "124jlg72bbk2xxv5wqbwcl4h5cdslslzk92rxjxiplg79l499hv3"; 18 }; 19 20 buildInputs = [ python wrapPython unzip ];
+9
pkgs/development/tools/build-managers/cmake/setup-hook.sh
··· 51 # And build always Release, to ensure optimisation flags 52 cmakeFlags="-DCMAKE_BUILD_TYPE=${cmakeBuildType:-Release} -DCMAKE_SKIP_BUILD_RPATH=ON $cmakeFlags" 53 54 echo "cmake flags: $cmakeFlags ${cmakeFlagsArray[@]}" 55 56 cmake ${cmakeDir:-.} $cmakeFlags "${cmakeFlagsArray[@]}" 57 58 runHook postConfigure 59 }
··· 51 # And build always Release, to ensure optimisation flags 52 cmakeFlags="-DCMAKE_BUILD_TYPE=${cmakeBuildType:-Release} -DCMAKE_SKIP_BUILD_RPATH=ON $cmakeFlags" 53 54 + if [ "$buildPhase" = ninjaBuildPhase ]; then 55 + cmakeFlags="-GNinja $cmakeFlags" 56 + fi 57 + 58 echo "cmake flags: $cmakeFlags ${cmakeFlagsArray[@]}" 59 60 cmake ${cmakeDir:-.} $cmakeFlags "${cmakeFlagsArray[@]}" 61 + 62 + if ! [[ -v enableParallelBuilding ]]; then 63 + enableParallelBuilding=1 64 + echo "cmake: enabled parallel building" 65 + fi 66 67 runHook postConfigure 68 }
+5
pkgs/development/tools/build-managers/meson/setup-hook.sh
··· 13 meson build $mesonFlags "${mesonFlagsArray[@]}" 14 cd build 15 16 runHook postConfigure 17 } 18
··· 13 meson build $mesonFlags "${mesonFlagsArray[@]}" 14 cd build 15 16 + if ! [[ -v enableParallelBuilding ]]; then 17 + enableParallelBuilding=1 18 + echo "meson: enabled parallel building" 19 + fi 20 + 21 runHook postConfigure 22 } 23
+8 -1
pkgs/development/tools/build-managers/ninja/setup-hook.sh
··· 4 if [[ -z "$ninjaFlags" && ! ( -e build.ninja ) ]]; then 5 echo "no build.ninja, doing nothing" 6 else 7 # shellcheck disable=SC2086 8 local flagsArray=( \ 9 - ${enableParallelBuilding:+-j${NIX_BUILD_CORES} -l${NIX_BUILD_CORES}} \ 10 $ninjaFlags "${ninjaFlagsArray[@]}" \ 11 $buildFlags "${buildFlagsArray[@]}") 12
··· 4 if [[ -z "$ninjaFlags" && ! ( -e build.ninja ) ]]; then 5 echo "no build.ninja, doing nothing" 6 else 7 + local buildCores=1 8 + 9 + # Parallel building is enabled by default. 10 + if [ "${enableParallelBuilding-1}" ]; then 11 + buildCores="$NIX_BUILD_CORES" 12 + fi 13 + 14 # shellcheck disable=SC2086 15 local flagsArray=( \ 16 + -j"$buildCores" -l"$NIX_BUILD_CORES" \ 17 $ninjaFlags "${ninjaFlagsArray[@]}" \ 18 $buildFlags "${buildFlagsArray[@]}") 19
+4
pkgs/development/tools/misc/editorconfig-core-c/default.nix
··· 14 buildInputs = [ pcre ]; 15 nativeBuildInputs = [ cmake doxygen ]; 16 17 meta = with stdenv.lib; { 18 homepage = http://editorconfig.org/; 19 description = "EditorConfig core library written in C";
··· 14 buildInputs = [ pcre ]; 15 nativeBuildInputs = [ cmake doxygen ]; 16 17 + # Multiple doxygen can not generate man pages in the same base directory in 18 + # parallel: https://bugzilla.gnome.org/show_bug.cgi?id=791153 19 + enableParallelBuilding = false; 20 + 21 meta = with stdenv.lib; { 22 homepage = http://editorconfig.org/; 23 description = "EditorConfig core library written in C";
+1 -1
pkgs/games/chessx/default.nix
··· 16 nativeBuildInputs = [ pkgconfig qmake ]; 17 18 # RCC: Error in 'resources.qrc': Cannot find file 'i18n/chessx_da.qm' 19 - #enableParallelBuilding = true; 20 21 installPhase = '' 22 runHook preInstall
··· 16 nativeBuildInputs = [ pkgconfig qmake ]; 17 18 # RCC: Error in 'resources.qrc': Cannot find file 'i18n/chessx_da.qm' 19 + enableParallelBuilding = false; 20 21 installPhase = '' 22 runHook preInstall
+41 -26
pkgs/misc/cups/default.nix
··· 1 - { stdenv, fetchurl, pkgconfig, zlib, libjpeg, libpng, libtiff, pam 2 - , dbus, systemd, acl, gmp, darwin 3 , libusb ? null, gnutls ? null, avahi ? null, libpaper ? null 4 }: 5 ··· 9 with stdenv.lib; 10 stdenv.mkDerivation rec { 11 name = "cups-${version}"; 12 - version = "2.2.2"; 13 14 passthru = { inherit version; }; 15 16 src = fetchurl { 17 url = "https://github.com/apple/cups/releases/download/v${version}/cups-${version}-source.tar.gz"; 18 - sha256 = "1xp4ji4rz3xffsz6w6nd60ajxvvihn02pkyp2l4smhqxbmyvp2gm"; 19 }; 20 21 outputs = [ "out" "lib" "dev" "man" ]; 22 23 - nativeBuildInputs = [ pkgconfig ]; 24 buildInputs = [ zlib libjpeg libpng libtiff libusb gnutls libpaper ] 25 ++ optionals stdenv.isLinux [ avahi pam dbus systemd acl ] 26 ++ optionals stdenv.isDarwin (with darwin; [ ··· 30 propagatedBuildInputs = [ gmp ]; 31 32 configureFlags = [ 33 - # Put just lib/* and locale into $lib; this didn't work directly. 34 - # lib/cups is moved back to $out in postInstall. 35 - # Beware: some parts of cups probably don't fully respect these. 36 - "--prefix=$(lib)" 37 - "--datadir=$(out)/share" 38 - "--localedir=$(lib)/share/locale" 39 - 40 "--localstatedir=/var" 41 "--sysconfdir=/etc" 42 - "--with-systemd=\${out}/lib/systemd/system" 43 "--enable-raw-printing" 44 "--enable-threads" 45 ] ++ optionals stdenv.isLinux [ ··· 49 ++ optional (gnutls != null) "--enable-ssl" 50 ++ optional (avahi != null) "--enable-avahi" 51 ++ optional (libpaper != null) "--enable-libpaper" 52 - ++ optionals stdenv.isDarwin [ 53 - "--with-bundledir=$out" 54 - "--disable-launchd" 55 - ]; 56 57 - # XXX: Hackery until https://github.com/NixOS/nixpkgs/issues/24693 58 - preBuild = if stdenv.isDarwin then '' 59 - export DYLD_FRAMEWORK_PATH=/System/Library/Frameworks 60 - '' else null; 61 62 installFlags = 63 [ # Don't try to write in /var at build time. ··· 80 enableParallelBuilding = true; 81 82 postInstall = '' 83 - moveToOutput lib/cups "$out" 84 85 # Delete obsolete stuff that conflicts with cups-filters. 86 rm -rf $out/share/cups/banners $out/share/cups/data/testprint 87 88 - # Some outputs in cups-config were unexpanded and some even wrong. 89 moveToOutput bin/cups-config "$dev" 90 - sed -e "/^cups_serverbin=/s|\$(lib)|$out|" \ 91 - -e "s|\$(out)|$out|" \ 92 - -e "s|\$(lib)|$lib|" \ 93 -i "$dev/bin/cups-config" 94 95 # Rename systemd files provided by CUPS 96 for f in "$out"/lib/systemd/system/*; do 97 substituteInPlace "$f" \ 98 --replace "org.cups.cupsd" "cups" \ 99 --replace "org.cups." "" 100
··· 1 + { stdenv, fetchurl, fetchpatch, pkgconfig, removeReferencesTo 2 + , zlib, libjpeg, libpng, libtiff, pam, dbus, systemd, acl, gmp, darwin 3 , libusb ? null, gnutls ? null, avahi ? null, libpaper ? null 4 }: 5 ··· 9 with stdenv.lib; 10 stdenv.mkDerivation rec { 11 name = "cups-${version}"; 12 + version = "2.2.6"; 13 14 passthru = { inherit version; }; 15 16 src = fetchurl { 17 url = "https://github.com/apple/cups/releases/download/v${version}/cups-${version}-source.tar.gz"; 18 + sha256 = "16qn41b84xz6khrr2pa2wdwlqxr29rrrkjfi618gbgdkq9w5ff20"; 19 }; 20 21 outputs = [ "out" "lib" "dev" "man" ]; 22 23 + patches = [ 24 + (fetchpatch { 25 + url = "https://git.archlinux.org/svntogit/packages.git/plain/trunk/cups-systemd-socket.patch?h=packages/cups"; 26 + sha256 = "1ddgdlg9s0l2ph6l8lx1m1lx6k50gyxqi3qiwr44ppq1rxs80ny5"; 27 + }) 28 + ]; 29 + 30 + nativeBuildInputs = [ pkgconfig removeReferencesTo ]; 31 + 32 buildInputs = [ zlib libjpeg libpng libtiff libusb gnutls libpaper ] 33 ++ optionals stdenv.isLinux [ avahi pam dbus systemd acl ] 34 ++ optionals stdenv.isDarwin (with darwin; [ ··· 38 propagatedBuildInputs = [ gmp ]; 39 40 configureFlags = [ 41 "--localstatedir=/var" 42 "--sysconfdir=/etc" 43 + "--with-rundir=/run" 44 "--enable-raw-printing" 45 "--enable-threads" 46 ] ++ optionals stdenv.isLinux [ ··· 50 ++ optional (gnutls != null) "--enable-ssl" 51 ++ optional (avahi != null) "--enable-avahi" 52 ++ optional (libpaper != null) "--enable-libpaper" 53 + ++ optional stdenv.isDarwin "--disable-launchd"; 54 + 55 + preConfigure = '' 56 + configureFlagsArray+=( 57 + # Put just lib/* and locale into $lib; this didn't work directly. 58 + # lib/cups is moved back to $out in postInstall. 59 + # Beware: some parts of cups probably don't fully respect these. 60 + "--prefix=$lib" 61 + "--datadir=$out/share" 62 + "--localedir=$lib/share/locale" 63 + 64 + "--with-systemd=$out/lib/systemd/system" 65 66 + ${optionalString stdenv.isDarwin '' 67 + "--with-bundledir=$out" 68 + ''} 69 + ) 70 + ''; 71 72 installFlags = 73 [ # Don't try to write in /var at build time. ··· 90 enableParallelBuilding = true; 91 92 postInstall = '' 93 + libexec=${if stdenv.isDarwin then "libexec/cups" else "lib/cups"} 94 + moveToOutput $libexec "$out" 95 + 96 + # $lib contains references to $out/share/cups. 97 + # CUPS is working without them, so they are not vital. 98 + find "$lib" -type f -exec grep -q "$out" {} \; \ 99 + -printf "removing references from %p\n" \ 100 + -exec remove-references-to -t "$out" {} + 101 102 # Delete obsolete stuff that conflicts with cups-filters. 103 rm -rf $out/share/cups/banners $out/share/cups/data/testprint 104 105 moveToOutput bin/cups-config "$dev" 106 + sed -e "/^cups_serverbin=/s|$lib|$out|" \ 107 -i "$dev/bin/cups-config" 108 109 # Rename systemd files provided by CUPS 110 for f in "$out"/lib/systemd/system/*; do 111 substituteInPlace "$f" \ 112 + --replace "$lib/$libexec" "$out/$libexec" \ 113 --replace "org.cups.cupsd" "cups" \ 114 --replace "org.cups." "" 115
+4
pkgs/os-specific/linux/conky/default.nix
··· 131 ++ optional nvidiaSupport "-DBUILD_NVIDIA=ON" 132 ; 133 134 meta = with stdenv.lib; { 135 homepage = http://conky.sourceforge.net/; 136 description = "Advanced, highly configurable system monitor based on torsmo";
··· 131 ++ optional nvidiaSupport "-DBUILD_NVIDIA=ON" 132 ; 133 134 + # `make -f src/CMakeFiles/conky.dir/build.make src/CMakeFiles/conky.dir/conky.cc.o`: 135 + # src/conky.cc:137:23: fatal error: defconfig.h: No such file or directory 136 + enableParallelBuilding = false; 137 + 138 meta = with stdenv.lib; { 139 homepage = http://conky.sourceforge.net/; 140 description = "Advanced, highly configurable system monitor based on torsmo";
+2 -2
pkgs/tools/misc/desktop-file-utils/default.nix
··· 3 with stdenv.lib; 4 5 stdenv.mkDerivation rec { 6 - name = "desktop-file-utils-0.22"; 7 8 src = fetchurl { 9 url = "http://www.freedesktop.org/software/desktop-file-utils/releases/${name}.tar.xz"; 10 - sha256 = "1ianvr2a69yjv4rpyv30w7yjsmnsb23crrka5ndqxycj4rkk4dc4"; 11 }; 12 13 nativeBuildInputs = [ pkgconfig ];
··· 3 with stdenv.lib; 4 5 stdenv.mkDerivation rec { 6 + name = "desktop-file-utils-0.23"; 7 8 src = fetchurl { 9 url = "http://www.freedesktop.org/software/desktop-file-utils/releases/${name}.tar.xz"; 10 + sha256 = "119kj2w0rrxkhg4f9cf5waa55jz1hj8933vh47vcjipcplql02bc"; 11 }; 12 13 nativeBuildInputs = [ pkgconfig ];
+6
pkgs/tools/misc/rockbox-utility/default.nix
··· 39 runHook postInstall 40 ''; 41 42 meta = with stdenv.lib; { 43 description = "Open source firmware for mp3 players"; 44 homepage = http://www.rockbox.org;
··· 39 runHook postInstall 40 ''; 41 42 + # `make build/rcc/qrc_rbutilqt-lang.cpp` fails with 43 + # RCC: Error in 'rbutilqt-lang.qrc': Cannot find file 'lang/rbutil_cs.qm' 44 + # Do not add `lrelease rbutilqt.pro` into preConfigure, otherwise `make lrelease` 45 + # may clobber the files read by the parallel `make build/rcc/qrc_rbutilqt-lang.cpp`. 46 + enableParallelBuilding = false; 47 + 48 meta = with stdenv.lib; { 49 description = "Open source firmware for mp3 players"; 50 homepage = http://www.rockbox.org;
+4 -50
pkgs/top-level/python-packages.nix
··· 1051 }; 1052 }; 1053 1054 - backports_shutil_get_terminal_size = if !(pythonOlder "3.3") then null else buildPythonPackage rec { 1055 - name = "backports.shutil_get_terminal_size-${version}"; 1056 - version = "1.0.0"; 1057 - 1058 - src = pkgs.fetchurl { 1059 - url = "mirror://pypi/b/backports.shutil_get_terminal_size/${name}.tar.gz"; 1060 - sha256 = "713e7a8228ae80341c70586d1cc0a8caa5207346927e23d09dcbcaf18eadec80"; 1061 - }; 1062 - 1063 - meta = { 1064 - description = "A backport of the get_terminal_size function from Python 3.3’s shutil."; 1065 - homepage = https://github.com/chrippa/backports.shutil_get_terminal_size; 1066 - license = with licenses; [ mit ]; 1067 - }; 1068 - }; 1069 1070 backports_ssl_match_hostname_3_4_0_2 = self.buildPythonPackage rec { 1071 name = "backports.ssl_match_hostname-3.4.0.2"; ··· 2464 2465 characteristic = callPackage ../development/python-modules/characteristic { }; 2466 2467 - cheetah = buildPythonPackage rec { 2468 - version = "2.4.4"; 2469 - name = "cheetah-${version}"; 2470 - disabled = isPy3k; 2471 - 2472 - src = pkgs.fetchurl { 2473 - url = "mirror://pypi/C/Cheetah/Cheetah-${version}.tar.gz"; 2474 - sha256 = "be308229f0c1e5e5af4f27d7ee06d90bb19e6af3059794e5fd536a6f29a9b550"; 2475 - }; 2476 - 2477 - propagatedBuildInputs = with self; [ self.markdown ]; 2478 - 2479 - meta = { 2480 - homepage = http://www.cheetahtemplate.org/; 2481 - description = "A template engine and code generation tool"; 2482 - }; 2483 - }; 2484 2485 cherrypy = callPackage ../development/python-modules/cherrypy {}; 2486 ··· 14309 }; 14310 }; 14311 14312 - pathlib2 = if !(pythonOlder "3.4") then null else buildPythonPackage rec { 14313 - name = "pathlib2-${version}"; 14314 - version = "2.2.1"; 14315 - 14316 - src = pkgs.fetchurl { 14317 - url = "mirror://pypi/p/pathlib2/${name}.tar.gz"; 14318 - sha256 = "ce9007df617ef6b7bd8a31cd2089ed0c1fed1f7c23cf2bf1ba140b3dd563175d"; 14319 - }; 14320 - 14321 - propagatedBuildInputs = with self; [ six ] ++ optional (pythonOlder "3.5") scandir; 14322 - 14323 - meta = { 14324 - description = "This module offers classes representing filesystem paths with semantics appropriate for different operating systems."; 14325 - homepage = https://pypi.python.org/pypi/pathlib2/; 14326 - license = with licenses; [ mit ]; 14327 - }; 14328 - 14329 - }; 14330 14331 pathpy = callPackage ../development/python-modules/path.py { }; 14332 ··· 19691 }; 19692 }; 19693 19694 19695 tweepy = buildPythonPackage (rec { 19696 name = "tweepy-3.5.0";
··· 1051 }; 1052 }; 1053 1054 + backports_shutil_get_terminal_size = callPackage ../development/python-modules/backports_shutil_get_terminal_size { }; 1055 1056 backports_ssl_match_hostname_3_4_0_2 = self.buildPythonPackage rec { 1057 name = "backports.ssl_match_hostname-3.4.0.2"; ··· 2450 2451 characteristic = callPackage ../development/python-modules/characteristic { }; 2452 2453 + cheetah = callPackage ../development/python-modules/cheetah { }; 2454 2455 cherrypy = callPackage ../development/python-modules/cherrypy {}; 2456 ··· 14279 }; 14280 }; 14281 14282 + pathlib2 = callPackage ../development/python-modules/pathlib2 { }; 14283 14284 pathpy = callPackage ../development/python-modules/path.py { }; 14285 ··· 19644 }; 19645 }; 19646 19647 + TurboCheetah = callPackage ../development/python-modules/TurboCheetah { }; 19648 19649 tweepy = buildPythonPackage (rec { 19650 name = "tweepy-3.5.0";