Fix crosstool-ng.nix
This commit is contained in:
parent
8dd8aac0f3
commit
d95954eff5
1 changed files with 4 additions and 4 deletions
|
@ -1,6 +1,4 @@
|
|||
{ stdenv, fetchurl, lib, makeWrapper,
|
||||
withCurl ? false,
|
||||
withWget ? true,
|
||||
flex,
|
||||
gnumake,
|
||||
texinfo,
|
||||
|
@ -25,6 +23,8 @@
|
|||
gcc,
|
||||
wget,
|
||||
curl,
|
||||
withCurl ? false,
|
||||
withWget ? true,
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
|
@ -33,7 +33,7 @@ stdenv.mkDerivation rec {
|
|||
|
||||
src = fetchurl {
|
||||
url = "http://crosstool-ng.org/download/crosstool-ng/${pname}-${version}.tar.bz2";
|
||||
sha512 = "379e668365628f0ab359ae119213bed44960870093f64f0fbb12e92bbe2a3b82bfed77f5ab33f2e2f17c1977e7a63f2151c46ad8d0e6208220fb7fa8726fae33";
|
||||
sha256 = "08zmw9j4h1yazbzm000ygs0kxr9h3mrg5cqi5c6wcmi0bvmd206j";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ makeWrapper ];
|
||||
|
@ -93,7 +93,7 @@ stdenv.mkDerivation rec {
|
|||
--prefix PATH : "${lib.strings.makeBinPath [ binutils-unwrapped m4 gcc ]}" \
|
||||
${lib.optionalString withWget "--set-default CT_WGET '${wget}/bin/wget'"} \
|
||||
${lib.optionalString withCurl "--set-default CT_CURL '${curl}/bin/curl'"}
|
||||
'';
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "A versatile (cross-)toolchain generator";
|
||||
|
|
Loading…
Reference in a new issue