summary refs log tree commit diff
path: root/pkgs/development/compilers/ghc/8.0.2.nix
diff options
context:
space:
mode:
authorJohn Ericson <John.Ericson@Obsidian.Systems>2017-10-18 14:05:39 -0400
committerJohn Ericson <John.Ericson@Obsidian.Systems>2017-11-05 17:10:53 -0500
commit4d4f94cde4d3806ca063ebf7e6ba448b0feae355 (patch)
treeab5b2aa5e33137b0832999a9a15d6740855c963f /pkgs/development/compilers/ghc/8.0.2.nix
parent70d91badf57bbe4cd884e5da22b14662dd36009c (diff)
downloadnixlib-4d4f94cde4d3806ca063ebf7e6ba448b0feae355.tar
nixlib-4d4f94cde4d3806ca063ebf7e6ba448b0feae355.tar.gz
nixlib-4d4f94cde4d3806ca063ebf7e6ba448b0feae355.tar.bz2
nixlib-4d4f94cde4d3806ca063ebf7e6ba448b0feae355.tar.lz
nixlib-4d4f94cde4d3806ca063ebf7e6ba448b0feae355.tar.xz
nixlib-4d4f94cde4d3806ca063ebf7e6ba448b0feae355.tar.zst
nixlib-4d4f94cde4d3806ca063ebf7e6ba448b0feae355.zip
treewide: Depend on targetPackages.stdenv.cc.bintools instead of binutils directly
One should do this when needed executables at run time. It is more
honest and cross-friendly than refering to binutils directly, if one
neeeds the default binary tools for the target platform, rather than
binutils in particular.
Diffstat (limited to 'pkgs/development/compilers/ghc/8.0.2.nix')
-rw-r--r--pkgs/development/compilers/ghc/8.0.2.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkgs/development/compilers/ghc/8.0.2.nix b/pkgs/development/compilers/ghc/8.0.2.nix
index e50a8df7352d..d475e3438b4b 100644
--- a/pkgs/development/compilers/ghc/8.0.2.nix
+++ b/pkgs/development/compilers/ghc/8.0.2.nix
@@ -1,4 +1,4 @@
-{ stdenv, lib, fetchurl, fetchpatch, bootPkgs, perl, ncurses, libiconv, binutils, coreutils
+{ stdenv, lib, fetchurl, fetchpatch, bootPkgs, perl, ncurses, libiconv, targetPackages, coreutils
 , hscolour, patchutils, sphinx
 
   # If enabled GHC will be build with the GPL-free but slower integer-simple
@@ -65,7 +65,7 @@ stdenv.mkDerivation rec {
     for i in "$out/bin/"*; do
       test ! -h $i || continue
       egrep --quiet '^#!' <(head -n 1 $i) || continue
-      sed -i -e '2i export PATH="$PATH:${stdenv.lib.makeBinPath [ binutils coreutils ]}"' $i
+      sed -i -e '2i export PATH="$PATH:${stdenv.lib.makeBinPath [ targetPackages.stdenv.cc.bintools coreutils ]}"' $i
     done
   '';