Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 1b5a8a2cc650
Choose a base ref
...
head repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 326e5ec55bfd
Choose a head ref

Commits on Nov 1, 2019

  1. Copy the full SHA
    7cc5913 View commit details
  2. bleachbit: 2.2 -> 3.0

    r-ryantm committed Nov 1, 2019
    Copy the full SHA
    d0abd31 View commit details
  3. btrbk: 0.28.3 -> 0.29.0

    r-ryantm committed Nov 1, 2019
    Copy the full SHA
    8655654 View commit details
  4. dblatex: 0.3.10 -> 0.3.11

    r-ryantm committed Nov 1, 2019
    Copy the full SHA
    9925f6e View commit details

Commits on Nov 2, 2019

  1. drumkv1: 0.9.10 -> 0.9.11

    r-ryantm committed Nov 2, 2019
    Copy the full SHA
    14df7a4 View commit details
  2. Copy the full SHA
    6634cd7 View commit details

Commits on Nov 6, 2019

  1. Copy the full SHA
    602e14f View commit details
  2. nixos/gnome3: add gnome-flashback to systemd.packages

    When we did the revert of adding gnome-flashback to systemd.packages [0]
    I forgot to test with other display managers. If we use GDM with gnome-flashback
    it appears it doesn't try to fallback to non-systemd startup and always fails and
    starts the regular gnome-session. So adding gnome-flashback to systemd.packages
    was perfectly fine, but we did forgot one detail. We need systemd targets for the
    customSessions which is added using  mkSystemdTargetForWm in the gnome-
    flashback package.
    
    [0]: 42f567b
    worldofpeace committed Nov 6, 2019
    Copy the full SHA
    473cd0d View commit details

Commits on Nov 10, 2019

  1. btrfs-progs: 5.2.2 -> 5.3.1

    judaew committed Nov 10, 2019
    Copy the full SHA
    9bf9370 View commit details

Commits on Nov 11, 2019

  1. Copy the full SHA
    38ebb8f View commit details
  2. lib: Switch to w64 vendor for MinGW

    It is needed for the `-municode` flag, supposedly.
    Ericson2314 committed Nov 11, 2019
    Copy the full SHA
    9171853 View commit details
  3. Copy the full SHA
    0a63190 View commit details
  4. Copy the full SHA
    06c5e81 View commit details
  5. mingw-w64 libc: Multiple outputs and parallel builds

    Also deduplicate more of the GCC derivations.
    Ericson2314 committed Nov 11, 2019
    Copy the full SHA
    999ef20 View commit details
  6. arrow-cpp: fix tests not being run on linux

    Fixes: 8c86e54 ('arrow-cpp: fix/disable some plasma tests on darwin')
    veprbl committed Nov 11, 2019
    Copy the full SHA
    c57018f View commit details
  7. Copy the full SHA
    00164f2 View commit details
  8. Copy the full SHA
    6fe78ec View commit details
  9. Copy the full SHA
    eb523b8 View commit details
  10. Copy the full SHA
    c432914 View commit details
  11. Copy the full SHA
    a4b4681 View commit details
  12. gcc: Build MinGW stage two with threading library

    Currently this is set up to be mcfgthreads, but it could be something
    else instead.
    Ericson2314 committed Nov 11, 2019
    Copy the full SHA
    04cb05d View commit details
  13. pcre: Skip winpthread dep

    Seems to build just fine without it, maybe it was just using C++ threads
    which mcfgthread provides?
    Ericson2314 committed Nov 11, 2019
    Copy the full SHA
    89ec69e View commit details
  14. profiles/graphical.nix: Drop systemWide pulseaudio in iso

    It's not needed since #66338 and should have been done earlier.
    
    This is based on a follow-up on #56167.
    etu committed Nov 11, 2019
    Copy the full SHA
    4403cd1 View commit details
  15. Copy the full SHA
    ef1d31e View commit details
  16. Copy the full SHA
    e00237e View commit details
  17. openssl: Switch deafult for MinGW

    Working around broken build for now.
    Ericson2314 committed Nov 11, 2019
    Copy the full SHA
    dec8d2c View commit details
  18. nghttp2: Fix MinGW build by skipping some optional deps

    I think those deps could be made to build, but I didn't want to get
    bogged down investigating further. "Use flags" are always a good thing,
    so this is fine for now.
    Ericson2314 committed Nov 11, 2019
    Copy the full SHA
    63eac67 View commit details
  19. guake: add missing dependency on setuptools

    python setuptools is a runtime dependency (as
    from pkg_resources import Requirement
    is used)
    wamserma committed Nov 11, 2019
    Copy the full SHA
    b0879a0 View commit details
  20. Merge pull request #72456 from r-ryantm/auto-update/btrbk

    btrbk: 0.28.3 -> 0.29.0
    markuskowa authored Nov 11, 2019
    Copy the full SHA
    289c4b4 View commit details
  21. Merge pull request #72534 from r-ryantm/auto-update/include-what-you-use

    include-what-you-use: 0.12 -> 0.13
    markuskowa authored Nov 11, 2019
    Copy the full SHA
    04c5e20 View commit details
  22. python3Packages.websockets: 8.0.2 -> 8.1

    Jonathan Ringer committed Nov 11, 2019
    Copy the full SHA
    a0476bb View commit details
  23. fop: builds on all platforms

    eraserhd authored and bjornfor committed Nov 11, 2019
    Copy the full SHA
    5277431 View commit details
  24. Copy the full SHA
    5e6043b View commit details
  25. Merge pull request #73250 from wamserma/guake-add-setuptools

    guake: add missing dependency on setuptools
    jtojnar authored Nov 11, 2019
    Copy the full SHA
    54b2edf View commit details
  26. Merge pull request #73213 from veprbl/pr/arrow-cpp_fix_tests_run

    arrow-cpp: fix tests not being run on linux
    c0bw3b authored Nov 11, 2019
    Copy the full SHA
    f6a91dd View commit details
  27. caffeine-ng: fix paths in desktop files

    symphorien authored and c0bw3b committed Nov 11, 2019
    Copy the full SHA
    40f1983 View commit details
  28. guake: clean up

    * format with nixpkgs-fmt
    * remove glibcLocales hack since we now have C.UTF-8
    jtojnar committed Nov 11, 2019
    Copy the full SHA
    374430e View commit details
  29. Merge pull request #72500 from r-ryantm/auto-update/drumkv1

    drumkv1: 0.9.10 -> 0.9.11
    markuskowa authored Nov 11, 2019
    Copy the full SHA
    5fa8b82 View commit details
  30. Merge pull request #72472 from r-ryantm/auto-update/dblatex

    dblatex: 0.3.10 -> 0.3.11
    markuskowa authored Nov 11, 2019
    Copy the full SHA
    dca1178 View commit details
  31. Merge pull request #73200 from tekeri/add-perl-logdispatchfilerotate

    perlPackages.LogDispatchFileRotate: init at 1.36
    7c6f434c authored Nov 11, 2019
    Copy the full SHA
    e944d42 View commit details
  32. Merge pull request #73207 from tekeri/add-perl-cdbfile

    perlPackages.CDB_File: init at 0.99
    7c6f434c authored Nov 11, 2019
    Copy the full SHA
    d7d290a View commit details
  33. Merge pull request #73204 from tekeri/add-perl-cachekyototycoon

    perlPackages.CacheKyotoTycoon: init at 0.16
    7c6f434c authored Nov 11, 2019
    Copy the full SHA
    64f146b View commit details
  34. Merge pull request #73168 from judaew/btrfs-progs-update

    btrfs-progs: 5.2.2 -> 5.3.1
    7c6f434c authored Nov 11, 2019
    Copy the full SHA
    e3b7676 View commit details

Commits on Nov 12, 2019

  1. Copy the full SHA
    58d9d8e View commit details
  2. Copy the full SHA
    16f0fe7 View commit details
  3. Merge pull request #72959 from worldofpeace/gnome-flashback-systemd

    nixos/gnome3: add gnome-flashback to systemd.packages
    worldofpeace authored Nov 12, 2019
    Copy the full SHA
    470254a View commit details
  4. Merge pull request #73195 from Ericson2314/mingw-mcfthreads

    MinGW: Enable C++ threads with mcfgthreads
    Ericson2314 authored Nov 12, 2019
    Copy the full SHA
    01429fc View commit details
  5. Merge pull request #73263 from kylesferrazza/update-numix-gtk-theme

    numix-solarized-gtk-theme: 20170810 -> 20180913
    offlinehacker authored Nov 12, 2019
    Copy the full SHA
    2041381 View commit details
  6. Merge pull request #72447 from r-ryantm/auto-update/bleachbit

    bleachbit: 2.2 -> 3.0
    markuskowa authored Nov 12, 2019
    Copy the full SHA
    1bcc42e View commit details
  7. Merge pull request #72444 from r-ryantm/auto-update/abcMIDI

    abcmidi: 2019.08.11 -> 2019.10.13
    markuskowa authored Nov 12, 2019
    Copy the full SHA
    1395327 View commit details
Showing with 550 additions and 327 deletions.
  1. +2 −2 lib/systems/examples.nix
  2. +3 −0 lib/systems/parse.nix
  3. +0 −1 nixos/modules/profiles/graphical.nix
  4. +7 −0 nixos/modules/services/x11/desktop-managers/gnome3.nix
  5. +5 −5 pkgs/applications/audio/drumkv1/default.nix
  6. +2 −2 pkgs/applications/misc/bleachbit/default.nix
  7. +40 −13 pkgs/applications/misc/guake/default.nix
  8. +2 −2 pkgs/applications/networking/mailreaders/neomutt/default.nix
  9. +2 −2 pkgs/build-support/fetchurl/default.nix
  10. +8 −0 pkgs/desktops/gnome-3/misc/gnome-flashback/default.nix
  11. +15 −19 pkgs/development/compilers/gcc/4.8/default.nix
  12. +15 −19 pkgs/development/compilers/gcc/4.9/default.nix
  13. +19 −19 pkgs/development/compilers/gcc/5/default.nix
  14. +20 −21 pkgs/development/compilers/gcc/6/default.nix
  15. +20 −20 pkgs/development/compilers/gcc/7/default.nix
  16. +21 −21 pkgs/development/compilers/gcc/8/default.nix
  17. +21 −21 pkgs/development/compilers/gcc/9/default.nix
  18. +2 −2 pkgs/development/compilers/gcc/common/configure-flags.nix
  19. +30 −0 pkgs/development/compilers/gcc/common/extra-target-flags.nix
  20. +1 −0 pkgs/development/compilers/gcc/common/mfcgthreads-patches-repo.nix
  21. +21 −21 pkgs/development/compilers/gcc/snapshot/default.nix
  22. +3 −3 pkgs/development/haskell-modules/configuration-nix.nix
  23. +75 −0 pkgs/development/haskell-modules/patches/servant-client-core-redact-auth-header.patch
  24. +0 −82 pkgs/development/haskell-modules/patches/servant-client-core-streamBody.patch
  25. +1 −1 pkgs/development/libraries/arrow-cpp/default.nix
  26. +7 −1 pkgs/development/libraries/boehm-gc/default.nix
  27. +11 −0 pkgs/development/libraries/boehm-gc/mcfgthread.patch
  28. +7 −2 pkgs/development/libraries/nghttp2/default.nix
  29. +0 −2 pkgs/development/libraries/pcre/default.nix
  30. +3 −1 pkgs/development/python-modules/Babel/default.nix
  31. +2 −2 pkgs/development/python-modules/websockets/default.nix
  32. +2 −2 pkgs/development/tools/analysis/include-what-you-use/default.nix
  33. +2 −2 pkgs/misc/themes/numix-solarized/default.nix
  34. +34 −18 pkgs/os-specific/windows/default.nix
  35. +24 −0 pkgs/os-specific/windows/mcfgthreads/default.nix
  36. +4 −0 pkgs/os-specific/windows/mingw-w64/default.nix
  37. +2 −2 pkgs/servers/dns/knot-dns/default.nix
  38. +4 −3 pkgs/servers/monitoring/prometheus/blackbox-exporter.nix
  39. +6 −1 pkgs/tools/X11/caffeine-ng/default.nix
  40. +2 −2 pkgs/tools/audio/abcmidi/default.nix
  41. +2 −2 pkgs/tools/backup/btrbk/default.nix
  42. +1 −1 pkgs/tools/typesetting/fop/default.nix
  43. +2 −2 pkgs/tools/typesetting/tex/dblatex/default.nix
  44. +28 −8 pkgs/top-level/all-packages.nix
  45. +72 −0 pkgs/top-level/perl-packages.nix
4 changes: 2 additions & 2 deletions lib/systems/examples.nix
Original file line number Diff line number Diff line change
@@ -207,15 +207,15 @@ rec {

# 32 bit mingw-w64
mingw32 = {
config = "i686-pc-mingw32";
config = "i686-w64-mingw32";
libc = "msvcrt"; # This distinguishes the mingw (non posix) toolchain
platform = {};
};

# 64 bit mingw-w64
mingwW64 = {
# That's the triplet they use in the mingw-w64 docs.
config = "x86_64-pc-mingw32";
config = "x86_64-w64-mingw32";
libc = "msvcrt"; # This distinguishes the mingw (non posix) toolchain
platform = {};
};
3 changes: 3 additions & 0 deletions lib/systems/parse.nix
Original file line number Diff line number Diff line change
@@ -208,6 +208,9 @@ rec {
vendors = setTypes types.openVendor {
apple = {};
pc = {};
# Actually matters, unlocking some MinGW-w64-specific options in GCC. See
# bottom of https://sourceforge.net/p/mingw-w64/wiki2/Unicode%20apps/
w64 = {};

none = {};
unknown = {};
1 change: 0 additions & 1 deletion nixos/modules/profiles/graphical.nix
Original file line number Diff line number Diff line change
@@ -16,7 +16,6 @@

# Enable sound in virtualbox appliances.
hardware.pulseaudio.enable = true;
hardware.pulseaudio.systemWide = true; # Needed since we run plasma as root.

environment.systemPackages = [ pkgs.glxinfo pkgs.firefox ];
}
7 changes: 7 additions & 0 deletions nixos/modules/services/x11/desktop-managers/gnome3.nix
Original file line number Diff line number Diff line change
@@ -184,6 +184,13 @@ in
enableGnomeKeyring = true;
};

systemd.packages = with pkgs.gnome3; [
gnome-flashback
] ++ (map
(wm: gnome-flashback.mkSystemdTargetForWm {
inherit (wm) wmName;
}) cfg.flashback.customSessions);

services.dbus.packages = [
pkgs.gnome3.gnome-screensaver
];
10 changes: 5 additions & 5 deletions pkgs/applications/audio/drumkv1/default.nix
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
{ stdenv, fetchurl, pkgconfig, libjack2, alsaLib, libsndfile, liblo, lv2, qt5 }:
{ mkDerivation, lib, fetchurl, pkgconfig, libjack2, alsaLib, libsndfile, liblo, lv2, qt5 }:

stdenv.mkDerivation rec {
mkDerivation rec {
pname = "drumkv1";
version = "0.9.10";
version = "0.9.11";

src = fetchurl {
url = "mirror://sourceforge/drumkv1/${pname}-${version}.tar.gz";
sha256 = "0h08r6vq23dlnag67fcfcpx83wampx4fag82v4bgkqg2sdh64p3n";
sha256 = "1wnjn175l0mz51k9pjf3pdzv54c4jlh63saavld9lm6zfgfs13d7";
};

buildInputs = [ libjack2 alsaLib libsndfile liblo lv2 qt5.qtbase qt5.qttools ];

nativeBuildInputs = [ pkgconfig ];

meta = with stdenv.lib; {
meta = with lib; {
description = "An old-school drum-kit sampler synthesizer with stereo fx";
homepage = http://drumkv1.sourceforge.net/;
license = licenses.gpl2Plus;
4 changes: 2 additions & 2 deletions pkgs/applications/misc/bleachbit/default.nix
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
{ stdenv, pythonPackages, fetchurl, gettext }:
pythonPackages.buildPythonApplication rec {
pname = "bleachbit";
version = "2.2";
version = "3.0";

format = "other";

src = fetchurl {
url = "mirror://sourceforge/${pname}/${pname}-${version}.tar.bz2";
sha256 = "1yj9bc3k6s1aib7znb79h5rybfv691zz4szxkwf9fm9nr0dws603";
sha256 = "18ns9hms671b4l0189m1m2agprkydnpvyky9q2f5hxf35i9cn67d";
};

nativeBuildInputs = [ gettext ];
53 changes: 40 additions & 13 deletions pkgs/applications/misc/guake/default.nix
Original file line number Diff line number Diff line change
@@ -1,10 +1,21 @@
{ stdenv, fetchFromGitHub, python3, gettext, gobject-introspection, wrapGAppsHook, glibcLocales
, gtk3, keybinder3, libnotify, libutempter, vte, libwnck3 }:
{ stdenv
, fetchFromGitHub
, python3
, gettext
, gobject-introspection
, wrapGAppsHook
, gtk3
, keybinder3
, libnotify
, libutempter
, vte
, libwnck3
}:

let
python3.pkgs.buildPythonApplication rec {
pname = "guake";
version = "3.6.3";
in python3.pkgs.buildPythonApplication {
name = "guake-${version}";

format = "other";

src = fetchFromGitHub {
@@ -19,18 +30,34 @@ in python3.pkgs.buildPythonApplication {
# and https://github.com/NixOS/nixpkgs/issues/56943
strictDeps = false;

nativeBuildInputs = [ gettext gobject-introspection wrapGAppsHook python3.pkgs.pip glibcLocales ];

buildInputs = [ gtk3 keybinder3 libnotify python3 vte ];
nativeBuildInputs = [
gettext
gobject-introspection
wrapGAppsHook
python3.pkgs.pip
];

propagatedBuildInputs = with python3.pkgs; [ dbus-python pbr pycairo pygobject3 libwnck3 ];
buildInputs = [
gtk3
keybinder3
libnotify
libwnck3
python3
vte
];

LC_ALL = "en_US.UTF-8"; # fixes weird encoding error, see https://github.com/NixOS/nixpkgs/pull/38642#issuecomment-379727699
propagatedBuildInputs = with python3.pkgs; [
dbus-python
pbr
pycairo
pygobject3
setuptools
];

PBR_VERSION = version; # pbr needs either .git directory, sdist, or env var

makeFlags = [
"prefix=$(out)"
"prefix=${placeholder ''out''}"
];

preFixup = ''
@@ -39,9 +66,9 @@ in python3.pkgs.buildPythonApplication {

meta = with stdenv.lib; {
description = "Drop-down terminal for GNOME";
homepage = http://guake-project.org;
homepage = "http://guake-project.org";
license = licenses.gpl2;
platforms = platforms.linux;
maintainers = [ maintainers.msteen ];
platforms = platforms.linux;
};
}
4 changes: 2 additions & 2 deletions pkgs/applications/networking/mailreaders/neomutt/default.nix
Original file line number Diff line number Diff line change
@@ -4,14 +4,14 @@
}:

stdenv.mkDerivation rec {
version = "20191102";
version = "20191111";
pname = "neomutt";

src = fetchFromGitHub {
owner = "neomutt";
repo = "neomutt";
rev = version;
sha256 = "0x5f9zbvxsxg5y2ir4xq4xw1q2snaxkidhdyhcxw5ljw3qqwhlyq";
sha256 = "16xr7wdmjw0i72xbnyyh098wx4cr0m8w2cr1szdi1b14p4kpgr67";
};

buildInputs = [
4 changes: 2 additions & 2 deletions pkgs/build-support/fetchurl/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ lib, stdenvNoCC, curl }: # Note that `curl' may be `null', in case of the native stdenvNoCC.
{ lib, buildPackages ? { inherit stdenvNoCC; }, stdenvNoCC, curl }: # Note that `curl' may be `null', in case of the native stdenvNoCC.

let

@@ -10,7 +10,7 @@ let
# resulting store derivations (.drv files) much smaller, which in
# turn makes nix-env/nix-instantiate faster.
mirrorsFile =
stdenvNoCC.mkDerivation ({
buildPackages.stdenvNoCC.mkDerivation ({
name = "mirrors-list";
builder = ./write-mirror-list.sh;
preferLocalBuild = true;
8 changes: 8 additions & 0 deletions pkgs/desktops/gnome-3/misc/gnome-flashback/default.nix
Original file line number Diff line number Diff line change
@@ -22,6 +22,7 @@
, writeTextFile
, writeShellScriptBin
, xkeyboard_config
, runCommand
}:

let
@@ -141,6 +142,13 @@ let
DesktopNames=GNOME-Flashback;GNOME;
'';
};

mkSystemdTargetForWm = { wmName }:
runCommand "gnome-flashback-${wmName}.target" {} ''
mkdir -p $out/lib/systemd/user
cp "${gnome-flashback}/lib/systemd/user/gnome-session-x11@gnome-flashback-metacity.target" \
"$out/lib/systemd/user/gnome-session-x11@gnome-flashback-${wmName}.target"
'';
};

meta = with stdenv.lib; {
34 changes: 15 additions & 19 deletions pkgs/development/compilers/gcc/4.8/default.nix
Original file line number Diff line number Diff line change
@@ -24,6 +24,7 @@
, enablePlugin ? stdenv.hostPlatform == stdenv.buildPlatform # Whether to support user-supplied plug-ins
, name ? "gcc"
, libcCross ? null
, threadsCross ? null # for MinGW
, crossStageStatic ? false
, # Strip kills static libs of other archs (hence no cross)
stripped ? stdenv.hostPlatform == stdenv.buildPlatform
@@ -48,10 +49,14 @@ assert stdenv.hostPlatform.isDarwin -> gnused != null;
# The go frontend is written in c++
assert langGo -> langCC;

# threadsCross is just for MinGW
assert threadsCross != null -> stdenv.targetPlatform.isWindows;

with stdenv.lib;
with builtins;

let version = "4.8.5";
let majorVersion = "4";
version = "${majorVersion}.8.5";

inherit (stdenv) buildPlatform hostPlatform targetPlatform;

@@ -172,6 +177,8 @@ stdenv.mkDerivation ({
++ (optional hostPlatform.isDarwin gnused)
;

depsTargetTarget = optional (!crossStageStatic && threadsCross != null) threadsCross;

preConfigure = import ../common/pre-configure.nix {
inherit (stdenv) lib;
inherit version hostPlatform langJava langGo;
@@ -253,24 +260,13 @@ stdenv.mkDerivation ({
++ optionals javaAwtGtk [ gmp mpfr ]
));

EXTRA_TARGET_FLAGS = optionals
(targetPlatform != hostPlatform && libcCross != null)
([
"-idirafter ${getDev libcCross}${libcCross.incdir or "/include"}"
] ++ optionals (! crossStageStatic) [
"-B${libcCross.out}${libcCross.libdir or "/lib"}"
]);

EXTRA_TARGET_LDFLAGS = optionals
(targetPlatform != hostPlatform && libcCross != null)
([
"-Wl,-L${libcCross.out}${libcCross.libdir or "/lib"}"
] ++ (if crossStageStatic then [
"-B${libcCross.out}${libcCross.libdir or "/lib"}"
] else [
"-Wl,-rpath,${libcCross.out}${libcCross.libdir or "/lib"}"
"-Wl,-rpath-link,${libcCross.out}${libcCross.libdir or "/lib"}"
]));
inherit
(import ../common/extra-target-flags.nix {
inherit stdenv crossStageStatic libcCross threadsCross;
})
EXTRA_TARGET_FLAGS
EXTRA_TARGET_LDFLAGS
;

passthru = {
inherit langC langCC langObjC langObjCpp langFortran langGo version;
34 changes: 15 additions & 19 deletions pkgs/development/compilers/gcc/4.9/default.nix
Original file line number Diff line number Diff line change
@@ -24,6 +24,7 @@
, enablePlugin ? stdenv.hostPlatform == stdenv.buildPlatform # Whether to support user-supplied plug-ins
, name ? "gcc"
, libcCross ? null
, threadsCross ? null # for MinGW
, crossStageStatic ? false
, # Strip kills static libs of other archs (hence no cross)
stripped ? stdenv.hostPlatform == stdenv.buildPlatform
@@ -48,10 +49,14 @@ assert stdenv.hostPlatform.isDarwin -> gnused != null;
# The go frontend is written in c++
assert langGo -> langCC;

# threadsCross is just for MinGW
assert threadsCross != null -> stdenv.targetPlatform.isWindows;

with stdenv.lib;
with builtins;

let version = "4.9.4";
let majorVersion = "4";
version = "${majorVersion}.9.4";

inherit (stdenv) buildPlatform hostPlatform targetPlatform;

@@ -178,6 +183,8 @@ stdenv.mkDerivation ({
++ (optional hostPlatform.isDarwin gnused)
;

depsTargetTarget = optional (!crossStageStatic && threadsCross != null) threadsCross;

preConfigure = import ../common/pre-configure.nix {
inherit (stdenv) lib;
inherit version hostPlatform langJava langGo;
@@ -259,24 +266,13 @@ stdenv.mkDerivation ({
++ optionals javaAwtGtk [ gmp mpfr ]
));

EXTRA_TARGET_FLAGS = optionals
(targetPlatform != hostPlatform && libcCross != null)
([
"-idirafter ${getDev libcCross}${libcCross.incdir or "/include"}"
] ++ optionals (! crossStageStatic) [
"-B${libcCross.out}${libcCross.libdir or "/lib"}"
]);

EXTRA_TARGET_LDFLAGS = optionals
(targetPlatform != hostPlatform && libcCross != null)
([
"-Wl,-L${libcCross.out}${libcCross.libdir or "/lib"}"
] ++ (if crossStageStatic then [
"-B${libcCross.out}${libcCross.libdir or "/lib"}"
] else [
"-Wl,-rpath,${libcCross.out}${libcCross.libdir or "/lib"}"
"-Wl,-rpath-link,${libcCross.out}${libcCross.libdir or "/lib"}"
]));
inherit
(import ../common/extra-target-flags.nix {
inherit stdenv crossStageStatic libcCross threadsCross;
})
EXTRA_TARGET_FLAGS
EXTRA_TARGET_LDFLAGS
;

passthru = {
inherit langC langCC langObjC langObjCpp langFortran langGo version;
Loading