Merge pull request #201017 from sternenseemann/ada-mode-fix-build

emacs.pkgs.ada-mode: fix build for version 7.3.1
This commit is contained in:
Anderson Torres 2022-11-13 11:17:12 -03:00 committed by GitHub
commit c364f9f3c3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -69,7 +69,7 @@ self: let
then null
else super.project;
# Compilation instructions for the Ada executables:
# https://www.nongnu.org/ada-mode/ada-mode.html#Ada-executables
# https://www.nongnu.org/ada-mode/
ada-mode = super.ada-mode.overrideAttrs (old: {
# actually unpack source of ada-mode and wisi
# which are both needed to compile the tools
@ -85,15 +85,18 @@ self: let
nativeBuildInputs = [
buildPackages.gnat
buildPackages.gprbuild
buildPackages.lzip
buildPackages.dos2unix
buildPackages.re2c
];
buildInputs = [
pkgs.gnatcoll-xref
];
preInstall = ''
buildPhase = ''
runHook preBuild
./build.sh -j$NIX_BUILD_CORES
runHook postBuild
'';
postInstall = (old.postInstall or "") + "\n" + ''