Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / by-name / ph / phel / package.nix
blob2c6431da28870a1cf4d89013c0d1aabde157f3a2
1 { lib
2 , fetchFromGitHub
3 , php
4 }:
6 php.buildComposerProject (finalAttrs: {
7   pname = "phel";
8   version = "0.12.0";
10   src = fetchFromGitHub {
11     owner = "phel-lang";
12     repo = "phel-lang";
13     rev = "v${finalAttrs.version}";
14     hash = "sha256-5PMd87Xp7i3Q1ryKQWJBmNbU5TGo2LQ6uvIFP3T36vk=";
15   };
17   vendorHash = "sha256-83GX/dxHa6w1E34wnJshg7yxlVyRkDT5jmAPCCqPdtA=";
19   doInstallCheck = true;
20   postCheckInstall = ''
21     $out/bin/phel --version
22   '';
24   meta = {
25     changelog = "https://github.com/phel-lang/phel-lang/releases/tag/v${finalAttrs.version}";
26     description = "Phel is a functional programming language that compiles to PHP. A Lisp dialect inspired by Clojure and Janet.";
27     homepage = "https://github.com/phel-lang/phel-lang";
28     license = lib.licenses.mit;
29     mainProgram = "phel";
30     maintainers = with lib.maintainers; [ drupol ];
31   };