34 lines
912 B
Nix
34 lines
912 B
Nix
{
|
|
lib,
|
|
fetchFromGitHub,
|
|
php,
|
|
versionCheckHook,
|
|
}:
|
|
|
|
php.buildComposerProject2 (finalAttrs: {
|
|
pname = "phel";
|
|
version = "0.19.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "phel-lang";
|
|
repo = "phel-lang";
|
|
tag = "v${finalAttrs.version}";
|
|
hash = "sha256-uJnxCReo/GR/zAwQEV1Gp9Hv6ydGbf4EiVNL7q0cRRw=";
|
|
};
|
|
|
|
vendorHash = "sha256-/7A71XQdMfirqfN9VIKFZxJ1HNBva5c2NOsbo6NMRzQ=";
|
|
|
|
doInstallCheck = true;
|
|
nativeInstallCheckInputs = [ versionCheckHook ];
|
|
versionCheckProgramArg = "--version";
|
|
|
|
meta = {
|
|
changelog = "https://github.com/phel-lang/phel-lang/releases/tag/v${finalAttrs.version}";
|
|
description = "Functional programming language that compiles to PHP. A Lisp dialect inspired by Clojure and Janet";
|
|
homepage = "https://github.com/phel-lang/phel-lang";
|
|
license = lib.licenses.mit;
|
|
mainProgram = "phel";
|
|
maintainers = with lib.maintainers; [ drupol ];
|
|
};
|
|
})
|