2023-10-26 20:40:35 +00:00
|
|
|
{ lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
, php
|
|
|
|
}:
|
|
|
|
|
|
|
|
php.buildComposerProject (finalAttrs: {
|
|
|
|
pname = "phel";
|
2024-05-14 02:27:13 +00:00
|
|
|
version = "0.13.0";
|
2023-10-26 20:40:35 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "phel-lang";
|
|
|
|
repo = "phel-lang";
|
2023-11-01 11:12:08 +00:00
|
|
|
rev = "v${finalAttrs.version}";
|
2024-05-14 02:27:13 +00:00
|
|
|
hash = "sha256-EITeApaQ1nmQb53/DrSidcmWUACapjTUuUYuJQDML0Y=";
|
2023-10-26 20:40:35 +00:00
|
|
|
};
|
|
|
|
|
2024-05-14 02:27:13 +00:00
|
|
|
vendorHash = "sha256-IWFOpsPcrPg2/QWemRJ8tP6k0sIc2OogETdiBFAQ5BI=";
|
2023-10-26 20:40:35 +00:00
|
|
|
|
2023-11-01 11:13:04 +00:00
|
|
|
doInstallCheck = true;
|
2024-02-15 21:26:38 +00:00
|
|
|
postInstallCheck = ''
|
2023-11-01 11:13:04 +00:00
|
|
|
$out/bin/phel --version
|
|
|
|
'';
|
|
|
|
|
2023-10-26 20:40:35 +00:00
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
})
|