about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/ocaml-modules/higlo/default.nix
blob: 3c4b7a37f99efbdc3d253edc3fb84dfb42c54962 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
{ lib, stdenv, fetchFromGitHub, ocaml, findlib, xtmpl, ulex }:

stdenv.mkDerivation rec {
  pname = "higlo";
  version = "0.6";
  src = fetchFromGitHub {
    owner = "zoggy";
    repo = "higlo";
    rev = "release-${version}";
    sha256 = "0m0qyk2ydivai54502s45sdw9w4xr0j3jpwyc4vqk62a7iz9ihxh";
  };

  buildInputs = [ ocaml findlib ];
  propagatedBuildInputs = [ xtmpl ulex ];

  createFindlibDestdir = true;

  patches = ./install.patch;

  meta = with lib; {
    description = "OCaml library for syntax highlighting";
    homepage = "https://zoggy.github.io/higlo/";
    license = licenses.lgpl3;
    platforms = ocaml.meta.platforms or [];
    maintainers = with maintainers; [ regnat ];
  };
}