Files
grl/flake.nix
T
Nina Chlóe Kassandra Reiß 4fa5426a15
Alire installation and checkup / build (ubuntu-20.04) (push) Failing after 5m45s
Add flake
2026-07-18 21:35:06 +02:00

62 lines
1.3 KiB
Nix

{
description = "Ada development environment with Alire";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-26.05";
flake-utils.url = "github:numtide/flake-utils";
};
outputs =
{
self,
nixpkgs,
flake-utils,
}:
flake-utils.lib.eachDefaultSystem (
system:
let
pkgs = import nixpkgs {
inherit system;
};
in
{
devShells.default = pkgs.mkShell {
packages = with pkgs; [
# Ada
gnat
gprbuild
alire
# Toolchain
gcc
binutils
# Build Tools
gnumake
cmake
pkg-config
# Debugging
gdb
# Utilities
git
which
file
];
shellHook = ''
export ADA_PROJECT_PATH="$PWD''${ADA_PROJECT_PATH:+:$ADA_PROJECT_PATH}"
echo "Ada + Alire development shell"
echo "--------------------------------"
command -v alr >/dev/null && alr --version
command -v gnat >/dev/null && gnat --version | head -n1
command -v gprbuild >/dev/null && gprbuild --version | head -n1
'';
};
}
);
}