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";
2023-11-01 11:12:08 +00:00
version = "0.12.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}";
hash = "sha256-5PMd87Xp7i3Q1ryKQWJBmNbU5TGo2LQ6uvIFP3T36vk=";
2023-10-26 20:40:35 +00:00
};
vendorHash = "sha256-83GX/dxHa6w1E34wnJshg7yxlVyRkDT5jmAPCCqPdtA=";
2023-11-01 11:13:04 +00:00
doInstallCheck = true;
postCheckInstall = ''
$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 ];
};
})