mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-09 11:03:15 +03:00
33 lines
922 B
Nix
33 lines
922 B
Nix
{
|
|
lib,
|
|
fetchFromGitHub,
|
|
php,
|
|
versionCheckHook,
|
|
}:
|
|
|
|
php.buildComposerProject2 (finalAttrs: {
|
|
pname = "phel";
|
|
version = "0.17.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "phel-lang";
|
|
repo = "phel-lang";
|
|
tag = "v${finalAttrs.version}";
|
|
hash = "sha256-iS887QNUphe+czx1IEz+uESBqee73/mHzmg2Fvi26do=";
|
|
};
|
|
|
|
vendorHash = "sha256-lhxgL41gyHVOv1MqjwwnWQTQZz4WU2kWGCSV2EZoJrg=";
|
|
|
|
doInstallCheck = true;
|
|
nativeInstallCheckInputs = [ versionCheckHook ];
|
|
versionCheckProgramArg = "--version";
|
|
|
|
meta = {
|
|
changelog = "https://github.com/phel-lang/phel-lang/releases/tag/v${finalAttrs.version}";
|
|
description = "Phel is a 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 ];
|
|
};
|
|
})
|