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: f56a3e1aacbf
Choose a base ref
...
head repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 8c6a5a26a764
Choose a head ref
  • 2 commits
  • 1 file changed
  • 2 contributors

Commits on Apr 9, 2020

  1. haskell.compiler.ghc822Binary: propagate llvm dependency

    Fixes the following error when attempting to build packages using this
    compiler:
    
      <no location info>: error:
          Warning: Couldn't figure out LLVM version!
                   Make sure you have installed LLVM 3.9
    
      <no location info>: error: ghc: could not execute: opt
    
    (cherry picked from commit 31f557c)
    thefloweringash authored and bennofs committed Apr 9, 2020
    Copy the full SHA
    48a0195 View commit details
  2. Merge pull request #84789 from bennofs/backport-ghc-llvm-aarch64

    [20.03] haskell.compiler.ghc822Binary: propagate llvm dependency
    domenkozar authored Apr 9, 2020
    Copy the full SHA
    8c6a5a2 View commit details
Showing with 4 additions and 1 deletion.
  1. +4 −1 pkgs/development/compilers/ghc/8.2.2-binary.nix
5 changes: 4 additions & 1 deletion pkgs/development/compilers/ghc/8.2.2-binary.nix
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
{ stdenv, substituteAll
, fetchurl, perl, gcc, llvm
, ncurses5, gmp, glibc, libiconv
, llvmPackages
}:

# Prebuilt only does native
assert stdenv.targetPlatform == stdenv.hostPlatform;

let
useLLVM = !stdenv.targetPlatform.isx86;

libPath = stdenv.lib.makeLibraryPath ([
ncurses5 gmp
] ++ stdenv.lib.optional (stdenv.hostPlatform.isDarwin) libiconv);
@@ -53,7 +56,7 @@ stdenv.mkDerivation rec {
or (throw "cannot bootstrap GHC on this platform"));

nativeBuildInputs = [ perl ];
buildInputs = stdenv.lib.optionals (stdenv.targetPlatform.isAarch32 || stdenv.targetPlatform.isAarch64) [ llvm ];
propagatedBuildInputs = stdenv.lib.optionals useLLVM [ llvmPackages.llvm ];

# Cannot patchelf beforehand due to relative RPATHs that anticipate
# the final install location/