Unverified Commit c364f9f3 authored by Anderson Torres's avatar Anderson Torres Committed by GitHub
Browse files

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

emacs.pkgs.ada-mode: fix build for version 7.3.1
parents f891f624 d0952837
Loading
Loading
Loading
Loading
+6 −3
Original line number Diff line number Diff line
@@ -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" + ''