2022-07-14 12:49:19 +00:00
|
|
|
{ stdenv, lib, autoPatchelfHook, fetchzip, xz, ncurses5, readline, gmp, mpfr
|
|
|
|
, expat, libipt, zlib, dejagnu, sourceHighlight, python3, elfutils, guile, glibc
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-07-14 12:49:19 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "gnatboot";
|
2022-08-12 12:06:08 +00:00
|
|
|
version = "12.1.0-2";
|
2021-08-05 21:33:18 +00:00
|
|
|
|
2022-07-14 12:49:19 +00:00
|
|
|
src = fetchzip {
|
|
|
|
url = "https://github.com/alire-project/GNAT-FSF-builds/releases/download/gnat-${version}/gnat-x86_64-linux-${version}.tar.gz";
|
2022-08-12 12:06:08 +00:00
|
|
|
hash = "sha256-EPDPOOjWJnJsUM7GGxj20/PXumjfLoMIEFX1EDtvWVY=";
|
2022-07-14 12:49:19 +00:00
|
|
|
};
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-07-14 12:49:19 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
autoPatchelfHook
|
|
|
|
dejagnu
|
|
|
|
elfutils
|
|
|
|
expat
|
|
|
|
glibc
|
|
|
|
gmp
|
|
|
|
guile
|
|
|
|
libipt
|
|
|
|
mpfr
|
|
|
|
ncurses5
|
|
|
|
python3
|
|
|
|
readline
|
|
|
|
sourceHighlight
|
|
|
|
xz
|
|
|
|
zlib
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out
|
2022-07-14 12:49:19 +00:00
|
|
|
cp -ar * $out/
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
passthru = {
|
|
|
|
langC = true; # TRICK for gcc-wrapper to wrap it
|
|
|
|
langCC = false;
|
|
|
|
langFortran = false;
|
|
|
|
langAda = true;
|
|
|
|
};
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2022-07-14 12:49:19 +00:00
|
|
|
description = "GNAT, the GNU Ada Translator";
|
|
|
|
homepage = "https://www.gnu.org/software/gnat";
|
|
|
|
license = licenses.gpl3;
|
|
|
|
maintainers = with maintainers; [ ethindp ];
|
2022-08-12 12:06:08 +00:00
|
|
|
platforms = [ "x86_64-linux" ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|