mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-23 05:14:45 +00:00
40 lines
869 B
Nix
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;
|
|
};
|
|
})
|