nixpkgs/pkgs/by-name/ph/phel/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

33 lines
864 B
Nix
Raw Normal View History

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;
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 ];
};
})