binutils and cctools: Prefix derivation names with target for cross
We want platform triple prefixes and suffixes on derivation names to be used consistently. The ideom this commit strives for is - suffix means build != host, i.e. cross *built* packages. This is already done. - prefix means build != target, i.e. cross tools. This matches the tradition of such binaries themselves being prefixed to disambiguate.] Binutils and cctools, as build tools, now use the latter
This commit is contained in:
parent
88ea6463a3
commit
7018dfb9f4
@ -7,7 +7,7 @@ let basename = "binutils-2.28"; in
|
|||||||
let inherit (stdenv.lib) optional optionals optionalString; in
|
let inherit (stdenv.lib) optional optionals optionalString; in
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = basename + optionalString (cross != null) "-${cross.config}";
|
name = optionalString (cross != null) "${cross.config}-" + basename;
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "mirror://gnu/binutils/${basename}.tar.bz2";
|
url = "mirror://gnu/binutils/${basename}.tar.bz2";
|
||||||
|
@ -15,7 +15,7 @@ in
|
|||||||
|
|
||||||
# TODO loop over prefixed binaries too
|
# TODO loop over prefixed binaries too
|
||||||
stdenv.mkDerivation {
|
stdenv.mkDerivation {
|
||||||
name = "cctools-binutils-darwin";
|
name = "${prefix}cctools-binutils-darwin";
|
||||||
buildCommand = ''
|
buildCommand = ''
|
||||||
mkdir -p $out/bin $out/include
|
mkdir -p $out/bin $out/include
|
||||||
|
|
||||||
|
@ -19,7 +19,7 @@ assert (!isDarwin hostPlatform.parsed) -> (maloader != null && xctoolchain != nu
|
|||||||
|
|
||||||
let
|
let
|
||||||
baseParams = rec {
|
baseParams = rec {
|
||||||
name = "cctools-port-${version}";
|
name = "${prefix}cctools-port-${version}";
|
||||||
version = "895";
|
version = "895";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user