Skip to content
This repository was archived by the owner on Apr 12, 2021. It is now read-only.
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-channels
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 95eb2fa40e6f
Choose a base ref
...
head repository: NixOS/nixpkgs-channels
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 49a16a290e68
Choose a head ref

Commits on Jun 15, 2018

  1. appimage-run: init

    This adds a best-effort hack to run AppImages, which currently don't
    work out-of-the-box on NixOS. This is not preferable to using packaged
    applications, but may help users if the application they want to run
    is not in nixpkgs.
    
    It uses the package list from the Steam chroot, but without Steam
    packages.
    tilpner committed Jun 15, 2018
    Copy the full SHA
    f384594 View commit details

Commits on Jun 19, 2018

  1. Copy the full SHA
    e2b8796 View commit details

Commits on Jun 21, 2018

  1. Copy the full SHA
    e2589f7 View commit details

Commits on Jun 22, 2018

  1. python3Packages.git-annex-adapter: fix build

    The exception message is broken becuase of some uppercase vs. lowercase
    issues that have been patched accordingly.
    
    Additionally use `fetchpatch` rather than `fetchurl` to apply patches
    into the build.
    Ma27 committed Jun 22, 2018
    Copy the full SHA
    47558d9 View commit details
  2. Copy the full SHA
    0fe77af View commit details
  3. Copy the full SHA
    e84a8bf View commit details

Commits on Jun 23, 2018

  1. phpPackages.composer: 1.6.3 -> 1.6.5

    Cray Elliott authored and Cray Elliott committed Jun 23, 2018
    Copy the full SHA
    950d667 View commit details
  2. dolphinEmuMaster: 20180609 -> 20180618

    Madouura authored and Cray Elliott committed Jun 23, 2018
    Copy the full SHA
    e4a32f9 View commit details
  3. dolphinEmuMaster: Add option-dependent desktop file

    Madouura authored and Cray Elliott committed Jun 23, 2018
    Copy the full SHA
    25d4708 View commit details
  4. dolphinEmuMaster: 20180618 -> 2018-06-22

    Madouura authored and Cray Elliott committed Jun 23, 2018
    Copy the full SHA
    794c91b View commit details
  5. freecad: fix build

    FRidh committed Jun 23, 2018
    Copy the full SHA
    bb79a46 View commit details
  6. Copy the full SHA
    3fde98e View commit details
  7. python.pkgs.pandas: fix build

    FRidh committed Jun 23, 2018
    Copy the full SHA
    46b7f6b View commit details
  8. python.pkgs.aiohttp: fix build

    FRidh committed Jun 23, 2018
    Copy the full SHA
    59daa4f View commit details
  9. Copy the full SHA
    1dcee7a View commit details
  10. atom: 1.27.2 -> 1.28.0

    Synthetica9 committed Jun 23, 2018
    Copy the full SHA
    5b3ccfd View commit details
  11. octoprint: fix build

    FRidh committed Jun 23, 2018
    Copy the full SHA
    14b2826 View commit details
  12. Merge pull request #42421 from bandresen/python-periphery

    pythonPackages.python-periphery: init at 1.1.1
    FRidh authored Jun 23, 2018
    Copy the full SHA
    1106d87 View commit details
  13. home-manager:2017-12-7 -> 2018-06-14

    pasqui23 authored and rycee committed Jun 23, 2018
    Copy the full SHA
    cdd5b90 View commit details
  14. Merge pull request #41762 from tilpner/appimage-run

    appimage-run: init
    dtzWill authored Jun 23, 2018
    Copy the full SHA
    19ef534 View commit details
  15. Revert "python: jupyterlab_launcher: 0.10.5 -> 0.11.0"

    This reverts commit a4404ad.
    Averell Dalton committed Jun 23, 2018
    Copy the full SHA
    06932b2 View commit details
  16. Merge pull request #42442 from averelld/fix-jupyterlab-build

    Revert "python: jupyterlab_launcher: 0.10.5 -> 0.11.0"
    FRidh authored Jun 23, 2018
    Copy the full SHA
    509eb61 View commit details
  17. Merge pull request #42345 from Ma27/fix-python-git-annex-adapter

    python3Packages.git-annex-adapter: fix build
    FRidh authored Jun 23, 2018
    Copy the full SHA
    4352048 View commit details
  18. Merge pull request #42367 from Assassinkin/monty

    pythonPackages.monty: init at 1.0.2
    FRidh authored Jun 23, 2018
    Copy the full SHA
    4df1161 View commit details
  19. Merge pull request #42335 from Assassinkin/seekpath

    pythonPackages.seekpath: init at 1.8.1
    FRidh authored Jun 23, 2018
    Copy the full SHA
    eb19504 View commit details
  20. Merge pull request #42425 from Synthetica9/atom-1-28-0

    atom: 1.27.2 -> 1.28.0
    FRidh authored Jun 23, 2018
    Copy the full SHA
    294e7b1 View commit details
  21. Merge pull request #42410 from Ma27/improve-screen-module

    nixos/screen: add `pkgs.screen` to the system closure
    FRidh authored Jun 23, 2018
    Copy the full SHA
    904114f View commit details
  22. Merge pull request #40959 from alexvorobiev/clustershell

    pythonPackages.clustershell: init at 1.8
    FRidh authored Jun 23, 2018
    Copy the full SHA
    fc4ab42 View commit details
  23. Copy the full SHA
    ffdf819 View commit details
  24. mpage: fix urls from mesa → glu transition

    Find/replace error in 0acec7e.
    Kevin Liu authored and dezgeg committed Jun 23, 2018
    Copy the full SHA
    7997c2a View commit details
  25. boost: use default toolset option

    for 1.66 & 1.67 we were overriding the default toolset option. This
    meant that gcc-cross was not being selected properly, breaking the
    cross toolchain.
    
    /cc @dtzWill
    matthewbauer committed Jun 23, 2018
    Copy the full SHA
    798ad38 View commit details
  26. Copy the full SHA
    3e49430 View commit details
  27. tbb: 2018_U4 -> 2018_U5

    Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools.
    
    This update was made based on information from https://repology.org/metapackage/tbb/versions.
    
    These checks were done:
    
    - built on NixOS
    
    - 0 of 0 passed binary check by having a zero exit code.
    - 0 of 0 passed binary check by having the new version present in output.
    - found 2018_U5 with grep in /nix/store/xhqkrh6rrs3ji21v1rdicm3f50j1ildx-tbb-2018_U5
    - directory tree listing: https://gist.github.com/cfe37285702751a390a4ccdcf83b000e
    - du listing: https://gist.github.com/ef220dc185b398311333a7d43930787a
    R. RyanTM authored and thoughtpolice committed Jun 23, 2018
    Copy the full SHA
    75a006c View commit details
  28. llvm-3.9: patches to fix w/musl

    Mostly same as used with LLVM 4.0
    dtzWill committed Jun 23, 2018
    Copy the full SHA
    96cfd14 View commit details
  29. llvm_39: unconditionally apply sigaltstack fix

    (as we do on other LLVM builds)
    dtzWill committed Jun 23, 2018
    Copy the full SHA
    04fb628 View commit details
  30. Copy the full SHA
    f0c154a View commit details
  31. llvm_39: set triples as well

    dtzWill committed Jun 23, 2018
    Copy the full SHA
    b39fb55 View commit details
  32. llvm_39: disable sanitizers/xray bits when using musl

    Don't have a fix for this handy and don't need it yet
    so for now just disable.
    dtzWill committed Jun 23, 2018
    Copy the full SHA
    a1bf9b6 View commit details
  33. Copy the full SHA
    182de52 View commit details
  34. Copy the full SHA
    4ef4e0f View commit details
  35. llvm_38: musl patches + options

    Same as those added to llvm_39 a few commits ago.
    dtzWill committed Jun 23, 2018
    Copy the full SHA
    6835129 View commit details
  36. Copy the full SHA
    ebcdd8b View commit details
  37. Copy the full SHA
    dd4299a View commit details
  38. Copy the full SHA
    e4fffae View commit details
  39. Copy the full SHA
    ae78847 View commit details
  40. Copy the full SHA
    0b7cc25 View commit details
  41. Copy the full SHA
    db7041a View commit details
  42. Copy the full SHA
    469cca0 View commit details
  43. Merge pull request #42452 from dtzWill/feature/llvm-38-39-musl

    llvmPackages_{38,39}: musl compat, minor cleanup
    dtzWill authored Jun 23, 2018
    Copy the full SHA
    1667a3c View commit details
  44. Copy the full SHA
    28c476d View commit details
Showing with 623 additions and 190 deletions.
  1. +8 −0 nixos/doc/manual/release-notes/rl-1809.xml
  2. +3 −1 nixos/modules/programs/screen.nix
  3. +2 −0 pkgs/applications/audio/amarok/kf5.nix
  4. +11 −0 pkgs/applications/audio/amarok/qt5_11.patch
  5. +4 −4 pkgs/applications/editors/atom/default.nix
  6. +13 −4 pkgs/applications/graphics/freecad/default.nix
  7. +23 −15 pkgs/applications/misc/octoprint/default.nix
  8. +1 −0 pkgs/applications/science/astronomy/gravit/default.nix
  9. +4 −0 pkgs/build-support/cc-wrapper/default.nix
  10. +1 −1 pkgs/development/compilers/ghc/8.2.2.nix
  11. +1 −1 pkgs/development/compilers/ghc/8.4.3.nix
  12. +4 −1 pkgs/development/compilers/llvm/3.8/clang/default.nix
  13. +10 −3 pkgs/development/compilers/llvm/3.8/libc++/default.nix
  14. +3 −0 pkgs/development/compilers/llvm/3.8/libc++abi.nix
  15. +15 −3 pkgs/development/compilers/llvm/3.8/llvm.nix
  16. +2 −0 pkgs/development/compilers/llvm/3.9/clang/default.nix
  17. +12 −6 pkgs/development/compilers/llvm/3.9/libc++/default.nix
  18. +3 −0 pkgs/development/compilers/llvm/3.9/libc++abi.nix
  19. +13 −2 pkgs/development/compilers/llvm/3.9/llvm.nix
  20. +1 −1 pkgs/development/compilers/llvm/4/libc++/default.nix
  21. +1 −1 pkgs/development/compilers/llvm/4/libc++abi.nix
  22. +1 −1 pkgs/development/compilers/llvm/4/llvm.nix
  23. 0 pkgs/development/compilers/llvm/{4 → }/dynamiclibrary-musl.patch
  24. 0 pkgs/development/compilers/llvm/{4/libc++/max_align_t.patch → libcxx-max_align_t.patch}
  25. +1 −1 pkgs/development/compilers/nim/default.nix
  26. +1 −0 pkgs/development/interpreters/picolisp/default.nix
  27. +1 −0 pkgs/development/libraries/agda/agda-stdlib/default.nix
  28. +0 −2 pkgs/development/libraries/boost/1.66.nix
  29. +0 −2 pkgs/development/libraries/boost/1.67.nix
  30. +15 −6 pkgs/development/libraries/boost/generic.nix
  31. +2 −2 pkgs/development/libraries/tbb/default.nix
  32. +7 −1 pkgs/development/python-modules/aiohttp/default.nix
  33. +89 −0 pkgs/development/python-modules/clustershell/default.nix
  34. +11 −7 pkgs/development/python-modules/git-annex-adapter/default.nix
  35. +13 −0 pkgs/development/python-modules/git-annex-adapter/not-a-git-repo-testcase.patch
  36. +2 −2 pkgs/development/python-modules/jupyterlab_launcher/default.nix
  37. +38 −0 pkgs/development/python-modules/monty/default.nix
  38. +21 −8 pkgs/development/python-modules/pandas/default.nix
  39. +2 −1 pkgs/development/python-modules/pyserial/default.nix
  40. +21 −0 pkgs/development/python-modules/python-periphery/default.nix
  41. +25 −0 pkgs/development/python-modules/seekpath/default.nix
  42. +2 −0 pkgs/games/ball-and-paddle/default.nix
  43. +1 −0 pkgs/games/chocolate-doom/default.nix
  44. +1 −0 pkgs/games/exult/default.nix
  45. +1 −0 pkgs/games/freeciv/default.nix
  46. +1 −0 pkgs/games/freedink/default.nix
  47. +1 −0 pkgs/games/lbreakout2/default.nix
  48. +0 −69 pkgs/games/unvanquished/default.nix
  49. +61 −35 pkgs/misc/emulators/dolphin-emu/master.nix
  50. +6 −0 pkgs/os-specific/linux/dmraid/default.nix
  51. +146 −0 pkgs/tools/package-management/appimage-run/default.nix
  52. +3 −3 pkgs/tools/package-management/home-manager/default.nix
  53. +2 −2 pkgs/tools/text/mpage/default.nix
  54. +2 −2 pkgs/top-level/all-packages.nix
  55. +2 −2 pkgs/top-level/php-packages.nix
  56. +9 −1 pkgs/top-level/python-packages.nix
8 changes: 8 additions & 0 deletions nixos/doc/manual/release-notes/rl-1809.xml
Original file line number Diff line number Diff line change
@@ -322,6 +322,14 @@ inherit (pkgs.nixos {
<literal>kubectl delete clusterrolebinding kubernetes-dashboard</literal>
</para>
</listitem>
<listitem>
<para>
The <varname>programs.screen</varname> module provides allows to configure
<literal>/etc/screenrc</literal>, however the module behaved fairly counterintuitive as
the config exists, but the package wasn't available. Since 18.09 <literal>pkgs.screen</literal>
will be added to <literal>environment.systemPackages</literal>.
</para>
</listitem>
</itemizedlist>
</section>
</section>
4 changes: 3 additions & 1 deletion nixos/modules/programs/screen.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ config, lib, ... }:
{ config, lib, pkgs, ... }:

let
inherit (lib) mkOption mkIf types;
@@ -25,6 +25,8 @@ in

config = mkIf (cfg.screenrc != "") {
environment.etc."screenrc".text = cfg.screenrc;

environment.systemPackages = [ pkgs.screen ];
};

}
2 changes: 2 additions & 0 deletions pkgs/applications/audio/amarok/kf5.nix
Original file line number Diff line number Diff line change
@@ -21,6 +21,8 @@ in mkDerivation {
sha256 = "05w7kl6qfmkjz0y1bhgkkbmsqdll30bkjd6npkzvivrvp7dplmbh";
};

patches = [ ./qt5_11.patch ];

nativeBuildInputs = [ extra-cmake-modules kdoctools ];
propagatedBuildInputs = [
qca-qt5 qjson qtscript qtwebkit
11 changes: 11 additions & 0 deletions pkgs/applications/audio/amarok/qt5_11.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
--- a/src/aboutdialog/ExtendedAboutDialog.cpp
+++ b/src/aboutdialog/ExtendedAboutDialog.cpp
@@ -30,6 +30,7 @@
#include <QLayout>
#include <QPushButton>
#include <QScrollBar>
+#include <QStyle>
#include <QTabWidget>

#include <qapplication.h>

8 changes: 4 additions & 4 deletions pkgs/applications/editors/atom/default.nix
Original file line number Diff line number Diff line change
@@ -60,12 +60,12 @@ let
};
in stdenv.lib.mapAttrs common {
atom = {
version = "1.27.2";
sha256 = "0xriv142asc82mjxzkqsafaqalxa3icz4781z2fsgyfkkw6zbz2v";
version = "1.28.0";
sha256 = "0k09316897qb9ypkqm6w78nz7sj5385xfdm9bm97m8pka7v61g7h";
};

atom-beta = {
version = "1.28.0-beta3";
sha256 = "07mmzkbc7xzcwh6ylrs2w1g3l5gmyfk0gdmr2kzr6jdr00cq73y0";
version = "1.29.0-beta0";
sha256 = "05xk63wsjfssf8ckph2bgrxaf99fhz3gs8n8pira8cc9yjk7diz7";
};
}
17 changes: 13 additions & 4 deletions pkgs/applications/graphics/freecad/default.nix
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{ stdenv, fetchurl, cmake, coin3d, xercesc, ode, eigen, qt4, opencascade, gts
, hdf5, vtk, medfile, boost, zlib, python27Packages, swig, gfortran
, hdf5, vtk, medfile, boost, zlib, python27Packages, swig, gfortran, fetchpatch
, soqt, libf2c, makeWrapper, makeDesktopItem
, mpi ? null }:

@@ -16,9 +16,18 @@ in stdenv.mkDerivation rec {
sha256 = "1yv6abdzlpn4wxy315943xwrnbywxqfgkjib37qwfvbb8y9p60df";
};

buildInputs = with pythonPackages; [ cmake coin3d xercesc ode eigen qt4 opencascade gts boost
zlib python swig gfortran soqt libf2c makeWrapper matplotlib mpi vtk hdf5 medfile
pycollada pyside pysideShiboken pysideTools pivy
buildInputs = with pythonPackages; [ cmake coin3d xercesc ode eigen qt4 opencascade gts
zlib swig gfortran soqt libf2c makeWrapper mpi vtk hdf5 medfile
] ++ (with pythonPackages; [
matplotlib pycollada pyside pysideShiboken pysideTools pivy python boost
]);

patches = [
# Fix for finding boost_python. Boost >= 1.67.0 appends the Python version.
(fetchpatch {
url = https://github.com/FreeCAD/FreeCAD/commit/3c9e6b038ed544e446c61695dab62f83e781a28a.patch;
sha256 = "0f09qywzn0y41hylizb5g8jy74fi53iqmvqr5zznaz16wpw4hqbp";
})
];

enableParallelBuilding = true;
38 changes: 23 additions & 15 deletions pkgs/applications/misc/octoprint/default.nix
Original file line number Diff line number Diff line change
@@ -6,29 +6,37 @@ let
overrides = self: super: with self; {
backports_ssl_match_hostname = self.backports_ssl_match_hostname_3_4_0_2;

flask = super.flask.overridePythonAttrs (oldAttrs: rec {
version = "0.12.4";
src = oldAttrs.src.override {
inherit version;
sha256 = "2ea22336f6d388b4b242bc3abf8a01244a8aa3e236e7407469ef78c16ba355dd";
};
});

tornado = buildPythonPackage rec {
name = "tornado-${version}";
pname = "tornado";
version = "4.0.2";

propagatedBuildInputs = [ backports_ssl_match_hostname certifi ];

src = fetchurl {
url = "mirror://pypi/t/tornado/${name}.tar.gz";
src = fetchPypi {
inherit pname version;
sha256 = "1yhvn8i05lp3b1953majg48i8pqsyj45h34aiv59hrfvxcj5234h";
};
};

flask_login = buildPythonPackage rec {
name = "Flask-Login-${version}";
pname = "Flask-Login";
version = "0.2.2";

src = fetchurl {
url = "mirror://pypi/F/Flask-Login/${name}.tar.gz";
src = fetchPypi {
inherit pname version;
sha256 = "09ygn0r3i3jz065a5psng6bhlsqm78msnly4z6x39bs48r5ww17p";
};

propagatedBuildInputs = [ flask ];
buildInputs = [ nose ];
checkInputs = [ nose ];

# No tests included
doCheck = false;
@@ -37,10 +45,9 @@ let
jinja2 = buildPythonPackage rec {
pname = "Jinja2";
version = "2.8.1";
name = "${pname}-${version}";

src = fetchurl {
url = "mirror://pypi/J/Jinja2/${name}.tar.gz";
src = fetchPypi {
inherit pname version;
sha256 = "14aqmhkc9rw5w0v311jhixdm6ym8vsm29dhyxyrjfqxljwx1yd1m";
};

@@ -53,14 +60,14 @@ let
};

in pythonPackages.buildPythonApplication rec {
name = "OctoPrint-${version}";
version = "1.3.6";
pname = "OctoPrint";
version = "1.3.8";

src = fetchFromGitHub {
owner = "foosel";
repo = "OctoPrint";
rev = version;
sha256 = "0pgpkjw5zjnks5bky51gjaksq8mhrzkl52kpgf799hl35pd08xr3";
sha256 = "00zd5yrlihwfd3ly0mxibr77ffa8r8vkm6jhml2ml43dqb99caa3";
};

# We need old Tornado
@@ -70,9 +77,10 @@ in pythonPackages.buildPythonApplication rec {
psutil pyserial flask_login netaddr markdown sockjs-tornado
pylru pyyaml sarge feedparser netifaces click websocket_client
scandir chainmap future dateutil futures wrapt monotonic emoji
frozendict
];

buildInputs = with pythonPackages; [ nose mock ddt ];
checkInputs = with pythonPackages; [ nose mock ddt ];

# Jailbreak dependencies.
postPatch = ''
@@ -88,7 +96,7 @@ in pythonPackages.buildPythonApplication rec {
-e 's,PyYAML>=[^"]*,PyYAML,g' \
-e 's,scandir>=[^"]*,scandir,g' \
-e 's,werkzeug>=[^"]*,werkzeug,g' \
-e 's,psutil>=[^"]*,psutil,g' \
-e 's,psutil==[^"]*,psutil,g' \
-e 's,requests>=[^"]*,requests,g' \
-e 's,future>=[^"]*,future,g' \
-e 's,pyserial>=[^"]*,pyserial,g' \
1 change: 1 addition & 0 deletions pkgs/applications/science/astronomy/gravit/default.nix
Original file line number Diff line number Diff line change
@@ -37,5 +37,6 @@ stdenv.mkDerivation rec {
'';

platforms = stdenv.lib.platforms.mesaPlatforms;
hydraPlatforms = stdenv.lib.platforms.linux; # darwin times out
};
}
4 changes: 4 additions & 0 deletions pkgs/build-support/cc-wrapper/default.nix
Original file line number Diff line number Diff line change
@@ -280,6 +280,10 @@ stdenv.mkDerivation {
hardening_unsupported_flags+=" pic"
''

+ optionalString targetPlatform.isMinGW ''
hardening_unsupported_flags+=" stackprotector"
''

+ ''
substituteAll ${./add-flags.sh} $out/nix-support/add-flags.sh
substituteAll ${./add-hardening.sh} $out/nix-support/add-hardening.sh
2 changes: 1 addition & 1 deletion pkgs/development/compilers/ghc/8.2.2.nix
Original file line number Diff line number Diff line change
@@ -8,7 +8,7 @@

, libffi, libiconv ? null, ncurses

, useLLVM ? !targetPlatform.isx86
, useLLVM ? !targetPlatform.isx86 || targetPlatform.isMusl
, # LLVM is conceptually a run-time-only depedendency, but for
# non-x86, we need LLVM to bootstrap later stages, so it becomes a
# build-time dependency too.
2 changes: 1 addition & 1 deletion pkgs/development/compilers/ghc/8.4.3.nix
Original file line number Diff line number Diff line change
@@ -7,7 +7,7 @@

, libffi, libiconv ? null, ncurses

, useLLVM ? !targetPlatform.isx86
, useLLVM ? !targetPlatform.isx86 || targetPlatform.isMusl
, # LLVM is conceptually a run-time-only depedendency, but for
# non-x86, we need LLVM to bootstrap later stages, so it becomes a
# build-time dependency too.
5 changes: 4 additions & 1 deletion pkgs/development/compilers/llvm/3.8/clang/default.nix
Original file line number Diff line number Diff line change
@@ -13,7 +13,8 @@ let
mv clang-tools-extra-* $sourceRoot/tools/extra
'';

buildInputs = [ cmake libxml2 llvm python ];
nativeBuildInputs = [ cmake ];
buildInputs = [ libxml2 llvm python ];

cmakeFlags = [
"-DCMAKE_CXX_FLAGS=-std=c++11"
@@ -27,6 +28,8 @@ let
postPatch = ''
sed -i -e 's/Args.hasArg(options::OPT_nostdlibinc)/true/' lib/Driver/Tools.cpp
sed -i -e 's/DriverArgs.hasArg(options::OPT_nostdlibinc)/true/' lib/Driver/ToolChains.cpp
'' + stdenv.lib.optionalString stdenv.hostPlatform.isMusl ''
sed -i -e 's/lgcc_s/lgcc_eh/' lib/Driver/Tools.cpp
'';

outputs = [ "out" "lib" "python" ];
13 changes: 10 additions & 3 deletions pkgs/development/compilers/llvm/3.8/libc++/default.nix
Original file line number Diff line number Diff line change
@@ -17,15 +17,22 @@ stdenv.mkDerivation rec {
patches = [
# glibc 2.26 fix
../../3.9/libc++/xlocale-glibc-2.26.patch
] ++ lib.optional stdenv.isDarwin ./darwin.patch;
]
++ lib.optional stdenv.isDarwin ./darwin.patch
++ stdenv.lib.optionals stdenv.hostPlatform.isMusl [
../../libcxx-0001-musl-hacks.patch
../../libcxx-max_align_t.patch
];

nativeBuildInputs = [ cmake ];

buildInputs = [ cmake libcxxabi ] ++ lib.optional stdenv.isDarwin fixDarwinDylibNames;
buildInputs = [ libcxxabi ] ++ lib.optional stdenv.isDarwin fixDarwinDylibNames;

cmakeFlags = [
"-DLIBCXX_LIBCXXABI_LIB_PATH=${libcxxabi}/lib"
"-DLIBCXX_LIBCPPABI_VERSION=2"
"-DLIBCXX_CXX_ABI=libcxxabi"
];
] ++ stdenv.lib.optional stdenv.hostPlatform.isMusl "-DLIBCXX_HAS_MUSL_LIBC=1";

enableParallelBuilding = true;

3 changes: 3 additions & 0 deletions pkgs/development/compilers/llvm/3.8/libc++abi.nix
Original file line number Diff line number Diff line change
@@ -15,6 +15,9 @@ stdenv.mkDerivation {
export cmakeFlags="-DLLVM_PATH=$PWD/$(ls -d llvm-*) -DLIBCXXABI_LIBCXX_INCLUDES=$PWD/$(ls -d libcxx-*)/include"
'' + stdenv.lib.optionalString stdenv.isDarwin ''
export TRIPLE=x86_64-apple-darwin
'' + stdenv.lib.optionalString stdenv.hostPlatform.isMusl ''
patch -p1 -d $(ls -d libcxx-*) -i ${../libcxx-0001-musl-hacks.patch}
patch -p1 -d $(ls -d libcxx-*) -i ${../libcxx-max_align_t.patch}
'';

installPhase = if stdenv.isDarwin
18 changes: 15 additions & 3 deletions pkgs/development/compilers/llvm/3.8/llvm.nix
Original file line number Diff line number Diff line change
@@ -36,8 +36,12 @@ in stdenv.mkDerivation rec {

# Fix a segfault in llc
# See http://lists.llvm.org/pipermail/llvm-dev/2016-October/106500.html
patches = [ ./D17533-1.patch ] ++
stdenv.lib.optionals (!stdenv.isDarwin) [./fix-llvm-config.patch];
patches = [ ./D17533-1.patch ]
++ stdenv.lib.optional (!stdenv.isDarwin) ./fix-llvm-config.patch
++ stdenv.lib.optionals stdenv.hostPlatform.isMusl [
../TLI-musl.patch
../dynamiclibrary-musl.patch
];

# hacky fix: New LLVM releases require a newer macOS SDK than
# 10.9. This is a temporary measure until nixpkgs darwin support is
@@ -49,7 +53,7 @@ in stdenv.mkDerivation rec {
--replace 'set(CMAKE_INSTALL_NAME_DIR "@rpath")' "set(CMAKE_INSTALL_NAME_DIR "$out/lib")" \
--replace 'set(CMAKE_INSTALL_RPATH "@executable_path/../lib")' ""
''
+ stdenv.lib.optionalString (stdenv ? glibc) ''
+ ''
(
cd projects/compiler-rt
patch -p1 < ${
@@ -81,6 +85,14 @@ in stdenv.mkDerivation rec {
++ stdenv.lib.optionals ( isDarwin) [
"-DLLVM_ENABLE_LIBCXX=ON"
"-DCAN_TARGET_i386=false"
] ++ stdenv.lib.optionals stdenv.hostPlatform.isMusl [
"-DLLVM_HOST_TRIPLE=${stdenv.hostPlatform.config}"
"-DLLVM_DEFAULT_TARGET_TRIPLE=${stdenv.targetPlatform.config}"
"-DTARGET_TRIPLE=${stdenv.targetPlatform.config}"
# Not yet supported
"-DCOMPILER_RT_BUILD_SANITIZERS=OFF"
"-DCOMPILER_RT_BUILD_XRAY=OFF"

];

postBuild = ''
2 changes: 2 additions & 0 deletions pkgs/development/compilers/llvm/3.9/clang/default.nix
Original file line number Diff line number Diff line change
@@ -29,6 +29,8 @@ let
postPatch = ''
sed -i -e 's/Args.hasArg(options::OPT_nostdlibinc)/true/' lib/Driver/Tools.cpp
sed -i -e 's/DriverArgs.hasArg(options::OPT_nostdlibinc)/true/' lib/Driver/ToolChains.cpp
'' + stdenv.lib.optionalString stdenv.hostPlatform.isMusl ''
sed -i -e 's/lgcc_s/lgcc_eh/' lib/Driver/Tools.cpp
'';

outputs = [ "out" "lib" "python" ];
18 changes: 12 additions & 6 deletions pkgs/development/compilers/llvm/3.9/libc++/default.nix
Original file line number Diff line number Diff line change
@@ -17,15 +17,21 @@ stdenv.mkDerivation rec {
patches = [
# glibc 2.26 fix
./xlocale-glibc-2.26.patch
] ++ lib.optional stdenv.isDarwin ./darwin.patch;
]
++ lib.optional stdenv.isDarwin ./darwin.patch
++ stdenv.lib.optionals stdenv.hostPlatform.isMusl [
../../libcxx-0001-musl-hacks.patch
../../libcxx-max_align_t.patch
];

buildInputs = [ cmake libcxxabi ] ++ lib.optional stdenv.isDarwin fixDarwinDylibNames;
nativeBuildInputs = [ cmake ];
buildInputs = [ libcxxabi ] ++ lib.optional stdenv.isDarwin fixDarwinDylibNames;

cmakeFlags = [
"-DLIBCXX_LIBCXXABI_LIB_PATH=${libcxxabi}/lib"
"-DLIBCXX_LIBCPPABI_VERSION=2"
"-DLIBCXX_CXX_ABI=libcxxabi"
];
"-DLIBCXX_LIBCXXABI_LIB_PATH=${libcxxabi}/lib"
"-DLIBCXX_LIBCPPABI_VERSION=2"
"-DLIBCXX_CXX_ABI=libcxxabi"
] ++ stdenv.lib.optional stdenv.hostPlatform.isMusl "-DLIBCXX_HAS_MUSL_LIBC=1";

enableParallelBuilding = true;

3 changes: 3 additions & 0 deletions pkgs/development/compilers/llvm/3.9/libc++abi.nix
Original file line number Diff line number Diff line change
@@ -15,6 +15,9 @@ stdenv.mkDerivation {
export cmakeFlags="-DLLVM_PATH=$PWD/$(ls -d llvm-*) -DLIBCXXABI_LIBCXX_INCLUDES=$PWD/$(ls -d libcxx-*)/include"
'' + stdenv.lib.optionalString stdenv.isDarwin ''
export TRIPLE=x86_64-apple-darwin
'' + stdenv.lib.optionalString stdenv.hostPlatform.isMusl ''
patch -p1 -d $(ls -d libcxx-*) -i ${../libcxx-0001-musl-hacks.patch}
patch -p1 -d $(ls -d libcxx-*) -i ${../libcxx-max_align_t.patch}
'';

installPhase = if stdenv.isDarwin
Loading