mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-11 08:13:04 +00:00
f2a142727c
Ada depencencies musst be build with the same gnat version as the project. Use a namespace as preperation to build with different gnat versions. gprbuild and gnatprove are still globaly visable.
48 lines
985 B
Nix
48 lines
985 B
Nix
{ stdenv
|
|
, lib
|
|
, gnat
|
|
, gprbuild
|
|
, fetchFromGitHub
|
|
, xmlada
|
|
, which
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "gnatcoll-core";
|
|
version = "24.0.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "AdaCore";
|
|
repo = "gnatcoll-core";
|
|
rev = "v${version}";
|
|
sha256 = "1cks2w0inj9hvamsdxjriwxnx1igmx2khhr6kwxshsl30rs8nzvb";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
gprbuild
|
|
which
|
|
gnat
|
|
];
|
|
|
|
# propagate since gprbuild needs to find
|
|
# referenced GPR project definitions
|
|
propagatedBuildInputs = [
|
|
gprbuild # libgpr
|
|
];
|
|
|
|
makeFlags = [
|
|
"prefix=${placeholder "out"}"
|
|
"PROCESSORS=$(NIX_BUILD_CORES)"
|
|
# confusingly, for gprbuild --target is autoconf --host
|
|
"TARGET=${stdenv.hostPlatform.config}"
|
|
];
|
|
|
|
meta = with lib; {
|
|
homepage = "https://github.com/AdaCore/gnatcoll-core";
|
|
description = "GNAT Components Collection - Core packages";
|
|
license = licenses.gpl3Plus;
|
|
maintainers = [ maintainers.sternenseemann ];
|
|
platforms = platforms.all;
|
|
};
|
|
}
|