2023-07-11 09:12:50 -06:00
|
|
|
{
|
|
|
|
stdenv,
|
|
|
|
lib,
|
|
|
|
fetchurl,
|
|
|
|
unzip,
|
|
|
|
autoPatchelfHook,
|
|
|
|
...
|
|
|
|
}:
|
2022-10-20 07:46:44 -06:00
|
|
|
with lib;
|
2023-07-11 09:12:50 -06:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "alire";
|
|
|
|
version = "1.2.1";
|
2022-10-20 07:46:44 -06:00
|
|
|
|
2023-07-11 09:12:50 -06:00
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/alire-project/alire/releases/download/v1.2.1/alr-1.2.1-bin-x86_64-linux.zip";
|
|
|
|
sha256 = "sha256-bN/H5CPN7uvUH9+p+y/sg01qTJI3asToxVSVnKVNHuM=";
|
|
|
|
};
|
2022-10-20 07:46:44 -06:00
|
|
|
|
2023-07-11 09:12:50 -06:00
|
|
|
nativeBuildInputs = [unzip autoPatchelfHook];
|
2022-10-20 07:46:44 -06:00
|
|
|
|
2023-07-11 09:12:50 -06:00
|
|
|
dontBuild = true;
|
|
|
|
doCheck = false;
|
2022-10-20 07:46:44 -06:00
|
|
|
|
2023-07-11 09:12:50 -06:00
|
|
|
installPhase = ''
|
|
|
|
runHook preInstall
|
|
|
|
mkdir -p $out/bin
|
|
|
|
install -D alr $out/bin/
|
|
|
|
runHook postInstall
|
|
|
|
'';
|
2022-10-20 07:46:44 -06:00
|
|
|
|
2023-07-11 09:12:50 -06:00
|
|
|
meta = {
|
|
|
|
description = "ALIRE: Ada LIbrary REpository.";
|
|
|
|
homepage = "https://github.com/alire-project/alire";
|
|
|
|
license = licenses.gpl3;
|
|
|
|
maintainers = with maintainers; [qbit];
|
|
|
|
};
|
|
|
|
}
|