mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-10-19 11:41:43 +03:00
gcc: use pname
and fix the dashes
This commit is contained in:
parent
2b616d2ff0
commit
e158e113a6
@ -101,8 +101,8 @@ let majorVersion = "4";
|
|||||||
|
|
||||||
/* Cross-gcc settings (build == host != target) */
|
/* Cross-gcc settings (build == host != target) */
|
||||||
crossMingw = targetPlatform != hostPlatform && targetPlatform.libc == "msvcrt";
|
crossMingw = targetPlatform != hostPlatform && targetPlatform.libc == "msvcrt";
|
||||||
stageNameAddon = if crossStageStatic then "-stage-static" else "-stage-final";
|
stageNameAddon = if crossStageStatic then "stage-static" else "stage-final";
|
||||||
crossNameAddon = if targetPlatform != hostPlatform then "-${targetPlatform.config}" + stageNameAddon else "";
|
crossNameAddon = optionalString (targetPlatform != hostPlatform) "${targetPlatform.config}-${stageNameAddon}-";
|
||||||
|
|
||||||
in
|
in
|
||||||
|
|
||||||
@ -110,7 +110,7 @@ in
|
|||||||
assert x11Support -> (filter (x: x == null) ([ gtk2 libart_lgpl ] ++ xlibs)) == [];
|
assert x11Support -> (filter (x: x == null) ([ gtk2 libart_lgpl ] ++ xlibs)) == [];
|
||||||
|
|
||||||
stdenv.mkDerivation ({
|
stdenv.mkDerivation ({
|
||||||
name = crossNameAddon + "${name}${if stripped then "" else "-debug"}-${version}";
|
pname = "${crossNameAddon}${name}${if stripped then "" else "-debug"}";
|
||||||
inherit version;
|
inherit version;
|
||||||
|
|
||||||
builder = ../builder.sh;
|
builder = ../builder.sh;
|
||||||
|
@ -106,8 +106,8 @@ let majorVersion = "4";
|
|||||||
|
|
||||||
/* Cross-gcc settings (build == host != target) */
|
/* Cross-gcc settings (build == host != target) */
|
||||||
crossMingw = targetPlatform != hostPlatform && targetPlatform.libc == "msvcrt";
|
crossMingw = targetPlatform != hostPlatform && targetPlatform.libc == "msvcrt";
|
||||||
stageNameAddon = if crossStageStatic then "-stage-static" else "-stage-final";
|
stageNameAddon = if crossStageStatic then "stage-static" else "stage-final";
|
||||||
crossNameAddon = if targetPlatform != hostPlatform then "-${targetPlatform.config}" + stageNameAddon else "";
|
crossNameAddon = optionalString (targetPlatform != hostPlatform) "${targetPlatform.config}-${stageNameAddon}-";
|
||||||
|
|
||||||
in
|
in
|
||||||
|
|
||||||
@ -115,7 +115,7 @@ in
|
|||||||
assert x11Support -> (filter (x: x == null) ([ gtk2 libart_lgpl ] ++ xlibs)) == [];
|
assert x11Support -> (filter (x: x == null) ([ gtk2 libart_lgpl ] ++ xlibs)) == [];
|
||||||
|
|
||||||
stdenv.mkDerivation ({
|
stdenv.mkDerivation ({
|
||||||
name = crossNameAddon + "${name}${if stripped then "" else "-debug"}-${version}";
|
pname = "${crossNameAddon}${name}${if stripped then "" else "-debug"}";
|
||||||
inherit version;
|
inherit version;
|
||||||
|
|
||||||
builder = ../builder.sh;
|
builder = ../builder.sh;
|
||||||
|
@ -97,8 +97,8 @@ let majorVersion = "5";
|
|||||||
|
|
||||||
/* Cross-gcc settings (build == host != target) */
|
/* Cross-gcc settings (build == host != target) */
|
||||||
crossMingw = targetPlatform != hostPlatform && targetPlatform.libc == "msvcrt";
|
crossMingw = targetPlatform != hostPlatform && targetPlatform.libc == "msvcrt";
|
||||||
stageNameAddon = if crossStageStatic then "-stage-static" else "-stage-final";
|
stageNameAddon = if crossStageStatic then "stage-static" else "stage-final";
|
||||||
crossNameAddon = if targetPlatform != hostPlatform then "-${targetPlatform.config}" + stageNameAddon else "";
|
crossNameAddon = optionalString (targetPlatform != hostPlatform) "${targetPlatform.config}-${stageNameAddon}-";
|
||||||
|
|
||||||
in
|
in
|
||||||
|
|
||||||
@ -106,7 +106,7 @@ in
|
|||||||
assert x11Support -> (filter (x: x == null) ([ gtk2 libart_lgpl ] ++ xlibs)) == [];
|
assert x11Support -> (filter (x: x == null) ([ gtk2 libart_lgpl ] ++ xlibs)) == [];
|
||||||
|
|
||||||
stdenv.mkDerivation ({
|
stdenv.mkDerivation ({
|
||||||
name = crossNameAddon + "${name}${if stripped then "" else "-debug"}-${version}";
|
pname = "${crossNameAddon}${name}${if stripped then "" else "-debug"}";
|
||||||
inherit version;
|
inherit version;
|
||||||
|
|
||||||
builder = ../builder.sh;
|
builder = ../builder.sh;
|
||||||
|
@ -93,8 +93,8 @@ let majorVersion = "6";
|
|||||||
|
|
||||||
/* Cross-gcc settings (build == host != target) */
|
/* Cross-gcc settings (build == host != target) */
|
||||||
crossMingw = targetPlatform != hostPlatform && targetPlatform.libc == "msvcrt";
|
crossMingw = targetPlatform != hostPlatform && targetPlatform.libc == "msvcrt";
|
||||||
stageNameAddon = if crossStageStatic then "-stage-static" else "-stage-final";
|
stageNameAddon = if crossStageStatic then "stage-static" else "stage-final";
|
||||||
crossNameAddon = if targetPlatform != hostPlatform then "-${targetPlatform.config}" + stageNameAddon else "";
|
crossNameAddon = optionalString (targetPlatform != hostPlatform) "${targetPlatform.config}-${stageNameAddon}-";
|
||||||
|
|
||||||
in
|
in
|
||||||
|
|
||||||
@ -102,7 +102,7 @@ in
|
|||||||
assert x11Support -> (filter (x: x == null) ([ gtk2 libart_lgpl ] ++ xlibs)) == [];
|
assert x11Support -> (filter (x: x == null) ([ gtk2 libart_lgpl ] ++ xlibs)) == [];
|
||||||
|
|
||||||
stdenv.mkDerivation ({
|
stdenv.mkDerivation ({
|
||||||
name = crossNameAddon + "${name}${if stripped then "" else "-debug"}-${version}";
|
pname = "${crossNameAddon}${name}${if stripped then "" else "-debug"}";
|
||||||
inherit version;
|
inherit version;
|
||||||
|
|
||||||
builder = ../builder.sh;
|
builder = ../builder.sh;
|
||||||
|
@ -71,13 +71,13 @@ let majorVersion = "7";
|
|||||||
|
|
||||||
/* Cross-gcc settings (build == host != target) */
|
/* Cross-gcc settings (build == host != target) */
|
||||||
crossMingw = targetPlatform != hostPlatform && targetPlatform.libc == "msvcrt";
|
crossMingw = targetPlatform != hostPlatform && targetPlatform.libc == "msvcrt";
|
||||||
stageNameAddon = if crossStageStatic then "-stage-static" else "-stage-final";
|
stageNameAddon = if crossStageStatic then "stage-static" else "stage-final";
|
||||||
crossNameAddon = if targetPlatform != hostPlatform then "-${targetPlatform.config}" + stageNameAddon else "";
|
crossNameAddon = optionalString (targetPlatform != hostPlatform) "${targetPlatform.config}-${stageNameAddon}-";
|
||||||
|
|
||||||
in
|
in
|
||||||
|
|
||||||
stdenv.mkDerivation ({
|
stdenv.mkDerivation ({
|
||||||
name = crossNameAddon + "${name}${if stripped then "" else "-debug"}-${version}";
|
pname = "${crossNameAddon}${name}${if stripped then "" else "-debug"}";
|
||||||
inherit version;
|
inherit version;
|
||||||
|
|
||||||
builder = ../builder.sh;
|
builder = ../builder.sh;
|
||||||
|
@ -63,13 +63,13 @@ let majorVersion = "8";
|
|||||||
|
|
||||||
/* Cross-gcc settings (build == host != target) */
|
/* Cross-gcc settings (build == host != target) */
|
||||||
crossMingw = targetPlatform != hostPlatform && targetPlatform.libc == "msvcrt";
|
crossMingw = targetPlatform != hostPlatform && targetPlatform.libc == "msvcrt";
|
||||||
stageNameAddon = if crossStageStatic then "-stage-static" else "-stage-final";
|
stageNameAddon = if crossStageStatic then "stage-static" else "stage-final";
|
||||||
crossNameAddon = if targetPlatform != hostPlatform then "-${targetPlatform.config}" + stageNameAddon else "";
|
crossNameAddon = optionalString (targetPlatform != hostPlatform) "${targetPlatform.config}-${stageNameAddon}-";
|
||||||
|
|
||||||
in
|
in
|
||||||
|
|
||||||
stdenv.mkDerivation ({
|
stdenv.mkDerivation ({
|
||||||
name = crossNameAddon + "${name}${if stripped then "" else "-debug"}-${version}";
|
pname = "${crossNameAddon}${name}${if stripped then "" else "-debug"}";
|
||||||
inherit version;
|
inherit version;
|
||||||
|
|
||||||
builder = ../builder.sh;
|
builder = ../builder.sh;
|
||||||
|
@ -62,13 +62,13 @@ let majorVersion = "9";
|
|||||||
|
|
||||||
/* Cross-gcc settings (build == host != target) */
|
/* Cross-gcc settings (build == host != target) */
|
||||||
crossMingw = targetPlatform != hostPlatform && targetPlatform.libc == "msvcrt";
|
crossMingw = targetPlatform != hostPlatform && targetPlatform.libc == "msvcrt";
|
||||||
stageNameAddon = if crossStageStatic then "-stage-static" else "-stage-final";
|
stageNameAddon = if crossStageStatic then "stage-static" else "stage-final";
|
||||||
crossNameAddon = if targetPlatform != hostPlatform then "-${targetPlatform.config}" + stageNameAddon else "";
|
crossNameAddon = optionalString (targetPlatform != hostPlatform) "${targetPlatform.config}-${stageNameAddon}-";
|
||||||
|
|
||||||
in
|
in
|
||||||
|
|
||||||
stdenv.mkDerivation ({
|
stdenv.mkDerivation ({
|
||||||
name = crossNameAddon + "${name}${if stripped then "" else "-debug"}-${version}";
|
pname = "${crossNameAddon}${name}${if stripped then "" else "-debug"}";
|
||||||
inherit version;
|
inherit version;
|
||||||
|
|
||||||
builder = ../builder.sh;
|
builder = ../builder.sh;
|
||||||
|
@ -59,13 +59,13 @@ let majorVersion = "7";
|
|||||||
|
|
||||||
/* Cross-gcc settings (build == host != target) */
|
/* Cross-gcc settings (build == host != target) */
|
||||||
crossMingw = targetPlatform != hostPlatform && targetPlatform.libc == "msvcrt";
|
crossMingw = targetPlatform != hostPlatform && targetPlatform.libc == "msvcrt";
|
||||||
stageNameAddon = if crossStageStatic then "-stage-static" else "-stage-final";
|
stageNameAddon = if crossStageStatic then "stage-static" else "stage-final";
|
||||||
crossNameAddon = if targetPlatform != hostPlatform then "-${targetPlatform.config}" + stageNameAddon else "";
|
crossNameAddon = optionalString (targetPlatform != hostPlatform) "${targetPlatform.config}-${stageNameAddon}-";
|
||||||
|
|
||||||
in
|
in
|
||||||
|
|
||||||
stdenv.mkDerivation ({
|
stdenv.mkDerivation ({
|
||||||
name = crossNameAddon + "${name}${if stripped then "" else "-debug"}-${version}";
|
pname = "${crossNameAddon}${name}${if stripped then "" else "-debug"}";
|
||||||
inherit version;
|
inherit version;
|
||||||
|
|
||||||
builder = ../builder.sh;
|
builder = ../builder.sh;
|
||||||
|
Loading…
Reference in New Issue
Block a user