Commit Graph

19 Commits

Author SHA1 Message Date
Artturin
cab4a24c34 treewide: fix lints
Arg to lib.optional is a list

build time tool in buildInputs
2023-03-11 00:55:17 +02:00
Boey Maun Suang
006a1d0a45 gnatboot: Add x86_64-darwin packages 2023-01-07 18:32:12 +11:00
Boey Maun Suang
6f7d967e28 gnat11: Fix by building with older gnatboot
GCC's installation instructions strongly recommend using an older
version of GNAT to build GNAT, as "[m]ore recent versions of GNAT than
the version built are not guaranteed to work and will often fail during
the build with compilation errors." [1]

The recent upgrade of gnatboot to a 12.1 release in commit bc640dc
unfortunately resulted in such a failure for gnat11 [2], resulting in
the same errors as GCC bug 103357 [3], which was marked WONTFIX for the
reason above.

This patch therefore reverts gnat11 to being built with an earlier 11.x
gnatboot version, while keeping the updated 12.1 gnatboot to build
gnat12 (which is fine because the latter is currently version 12.2).
Fixing gnat11 is also a step towards re-enabling the
coreboot-toolchain-* packages to be built with Ada support.

To facilitate such explicit version dependencies while retaining the
meaning of the existing gnatboot package, and in the fashion of the
existing gcc packages, this patch also creates the packages gnatboot11
and gnatboot12 with gnatboot made an alias of gnatboot12.

[1]: https://gcc.gnu.org/install/prerequisites.html
[2]: https://github.com/NixOS/nixpkgs/pull/182414#issuecomment-1204432909
[3]: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103357
2022-11-25 08:15:10 +01:00
Rick van Schijndel
dcd89a1847
Merge pull request #182414 from ethindp/gnatboot12
gnatboot: 11.2.0-4 -> 12.1.0-2
2022-08-07 16:45:34 +02:00
Weijia Wang
278086eddb treewide: fix platforms 2022-08-01 18:33:27 +02:00
Ethin Probst
bc640dc883 gnatboot: 11.2.0-4 -> 12.1.0-2
Signed-off-by: Ethin Probst <harlydavidsen@gmail.com>
2022-07-21 21:48:22 -05:00
Ethin Probst
6e6436963d
gnatboot: 4.1 -> 11.2.0-4 (#177579)
Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
2022-07-14 14:14:58 +02:00
xaverdh
03a257e5a3
treewide: quote urls according to rfc 0045 (#145260)
Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
2021-11-10 11:37:56 +01:00
sternenseemann
58dbc09c41 gnatboot: explicitly check hostPlatform and prevent building a cross compiler
* gnatboot can't be used as cross compiler, so we should prevent this at
  eval time.

* Explicitly checking hostPlatform is also a lot nicer. Keeping system
  since gnatboot seems to be statically linked so gnu/musl which is also
  tracked in config isn't important.
2021-07-28 12:44:49 +02:00
Ben Siraphob
acc5f7b18a pkgs/development/compilers: stdenv.lib -> lib 2021-01-23 08:57:37 +07:00
Lars Jellema
8e79583510 gnat: init at 9.3.0 2020-04-20 14:41:22 +02:00
Shea Levy
c69d8bf5e6
treewide: Remove gnat support.
See discussion in 6ac7b19c97.
2018-03-08 13:56:36 -05:00
Eelco Dolstra
6f33aa8465 orig-gcc -> orig-cc 2015-03-04 22:15:46 +01:00
John Wiegley
28b6fb61e6 Change occurrences of gcc to the more general cc
This is done for the sake of Yosemite, which does not have gcc, and yet
this change is also compatible with Linux.
2014-12-26 11:06:21 -06:00
Mateusz Kowalczyk
7a45996233 Turn some license strings into lib.licenses values 2014-07-28 11:31:14 +02:00
Eelco Dolstra
84779a6f7d Remove unnecessary parentheses around if conditions
Pet peeve...
2012-12-28 19:54:15 +01:00
Eelco Dolstra
c556a6ea46 * "ensureDir" -> "mkdir -p". "ensureDir" is a rather pointless
function, so obsolete it.

svn path=/nixpkgs/branches/stdenv-updates/; revision=31644
2012-01-18 20:16:00 +00:00
Lluís Batlle i Rossell
5968b490d6 The fix in r19516 made evident an error in the gnatboot expression, about
library paths. Fixing this, to get gnat properly built.


svn path=/nixpkgs/branches/stdenv-updates/; revision=19531
2010-01-18 23:28:58 +00:00
Lluís Batlle i Rossell
fb82bac2fc Adding first built version of the gnat compiler for gcc 4.4.
Some things don't work:
- The ghdl expression (it still needs the gcc 4.3.4 src, ...)
- The gnat wrappers need to be more generic - now they work only for the
  given gnatboot (taken from gentoo) and gnats installed to their $out
  store path.
- Using the cloogppl and ppl. We will need our own gnatboot built with c++
  libraries for that.


svn path=/nixpkgs/branches/stdenv-updates/; revision=19060
2009-12-21 07:49:31 +00:00