34 lines
883 B
Nix
34 lines
883 B
Nix
|
|
{
|
||
|
|
lib,
|
||
|
|
fetchFromGitHub,
|
||
|
|
php,
|
||
|
|
versionCheckHook,
|
||
|
|
}:
|
||
|
|
|
||
|
|
php.buildComposerProject2 (finalAttrs: {
|
||
|
|
pname = "phel";
|
||
|
|
version = "0.23.1";
|
||
|
|
|
||
|
|
src = fetchFromGitHub {
|
||
|
|
owner = "phel-lang";
|
||
|
|
repo = "phel-lang";
|
||
|
|
tag = "v${finalAttrs.version}";
|
||
|
|
hash = "sha256-v/xRYzKCwF1kKDV00jK7Cwz3TupkNZVec/h2JnhVq4E=";
|
||
|
|
};
|
||
|
|
|
||
|
|
vendorHash = "sha256-oABfUeL52XFKUui1tBuoyK2B7kBcYdLuVo4OllX07AQ=";
|
||
|
|
|
||
|
|
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 = [ ];
|
||
|
|
};
|
||
|
|
})
|