nixpkgs/pkgs/development/compilers/ponyc/pony-corral.nix
2024-11-16 22:06:43 -08:00

40 lines
869 B
Nix

{
lib,
stdenv,
fetchFromGitHub,
ponyc,
nix-update-script,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "corral";
version = "0.8.1";
src = fetchFromGitHub {
owner = "ponylang";
repo = "corral";
rev = finalAttrs.version;
hash = "sha256-cbiw7OaU6HyAp/dHV5FVI7B7mam0GUb95EkR/Grwu0k=";
};
strictDeps = true;
nativeBuildInputs = [ ponyc ];
installFlags = [
"prefix=${placeholder "out"}"
"install"
];
passthru.updateScript = nix-update-script { };
meta = with lib; {
description = "Corral is a dependency management tool for ponylang (ponyc)";
homepage = "https://www.ponylang.io";
changelog = "https://github.com/ponylang/corral/blob/${finalAttrs.version}/CHANGELOG.md";
license = licenses.bsd2;
maintainers = with maintainers; [ redvers numinit ];
inherit (ponyc.meta) platforms;
};
})