ca5ab3a501
GitOrigin-RevId: 4a01ca36d6bfc133bc617e661916a81327c9bbc8
51 lines
1.1 KiB
Nix
51 lines
1.1 KiB
Nix
{ stdenv, lib, autoPatchelfHook, fetchzip, xz, ncurses5, readline, gmp, mpfr
|
|
, expat, libipt, zlib, dejagnu, sourceHighlight, python3, elfutils, guile, glibc
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "gnatboot";
|
|
version = "11.2.0-4";
|
|
|
|
src = fetchzip {
|
|
url = "https://github.com/alire-project/GNAT-FSF-builds/releases/download/gnat-${version}/gnat-x86_64-linux-${version}.tar.gz";
|
|
hash = "sha256-8fMBJp6igH+Md5jE4LMubDmC4GLt4A+bZG/Xcz2LAJQ=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
autoPatchelfHook
|
|
dejagnu
|
|
elfutils
|
|
expat
|
|
glibc
|
|
gmp
|
|
guile
|
|
libipt
|
|
mpfr
|
|
ncurses5
|
|
python3
|
|
readline
|
|
sourceHighlight
|
|
xz
|
|
zlib
|
|
];
|
|
|
|
installPhase = ''
|
|
mkdir -p $out
|
|
cp -ar * $out/
|
|
'';
|
|
|
|
passthru = {
|
|
langC = true; # TRICK for gcc-wrapper to wrap it
|
|
langCC = false;
|
|
langFortran = false;
|
|
langAda = true;
|
|
};
|
|
|
|
meta = with lib; {
|
|
description = "GNAT, the GNU Ada Translator";
|
|
homepage = "https://www.gnu.org/software/gnat";
|
|
license = licenses.gpl3;
|
|
maintainers = with maintainers; [ ethindp ];
|
|
platforms = with platforms; [ "x86_64-linux" ];
|
|
};
|
|
}
|