2022-12-04 22:12:16 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, ponyc
|
2023-05-21 14:12:02 +00:00
|
|
|
, nix-update-script
|
2022-12-04 22:12:16 +00:00
|
|
|
}:
|
2020-09-29 01:14:12 +00:00
|
|
|
|
2023-09-19 22:37:44 +00:00
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
2020-09-29 01:14:12 +00:00
|
|
|
pname = "corral";
|
2023-09-19 22:37:44 +00:00
|
|
|
version = "0.8.0";
|
2020-09-29 01:14:12 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "ponylang";
|
2023-09-19 22:37:44 +00:00
|
|
|
repo = "corral";
|
|
|
|
rev = finalAttrs.version;
|
|
|
|
hash = "sha256-+pHg5BFHlScC1suad0/3RqKAnxoEVZNUNj1EDLvbsfA=";
|
2020-09-29 01:14:12 +00:00
|
|
|
};
|
|
|
|
|
2023-09-19 22:37:44 +00:00
|
|
|
strictDeps = true;
|
|
|
|
|
|
|
|
nativeBuildInputs = [ ponyc ];
|
2020-09-29 01:14:12 +00:00
|
|
|
|
|
|
|
installFlags = [ "prefix=${placeholder "out"}" "install" ];
|
|
|
|
|
2023-05-21 14:12:02 +00:00
|
|
|
passthru.updateScript = nix-update-script { };
|
|
|
|
|
2021-01-22 11:25:31 +00:00
|
|
|
meta = with lib; {
|
2020-09-29 01:14:12 +00:00
|
|
|
description = "Corral is a dependency management tool for ponylang (ponyc)";
|
|
|
|
homepage = "https://www.ponylang.io";
|
2023-09-19 22:37:44 +00:00
|
|
|
changelog = "https://github.com/ponylang/corral/blob/${finalAttrs.version}/CHANGELOG.md";
|
2020-09-29 01:14:12 +00:00
|
|
|
license = licenses.bsd2;
|
2023-03-30 14:00:40 +00:00
|
|
|
maintainers = with maintainers; [ redvers ];
|
2023-09-19 22:37:44 +00:00
|
|
|
inherit (ponyc.meta) platforms;
|
2020-09-29 01:14:12 +00:00
|
|
|
};
|
|
|
|
})
|