Merge pull request #26007 from obsidiansystems/cc-wrapper-prefix

Get rid of gcc-cross-wrapper
This commit is contained in:
John Ericson
2017-06-23 11:22:34 -04:00
committed by GitHub
62 changed files with 557 additions and 928 deletions
+12 -2
View File
@@ -1,4 +1,9 @@
{ stdenv, fetchurl, lzip }:
{ stdenv
, fetchurl, lzip
, hostPlatform, buildPlatform
}:
let inherit (stdenv.lib) optionals; in
stdenv.mkDerivation rec {
name = "ddrescue-1.22";
@@ -10,7 +15,12 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ lzip ];
doCheck = true;
doCheck = hostPlatform == buildPlatform;
${if hostPlatform != buildPlatform then "crossPlatforms" else null} = [ ];
${if hostPlatform != buildPlatform then "configureFlags" else null} = [
"CXX=${stdenv.cc.prefix}c++"
];
meta = with stdenv.lib; {
description = "GNU ddrescue, a data recovery tool";