summaryrefslogtreecommitdiff
path: root/pkgs/development/tools/ocaml/ocamlify/default.nix
blob: b5a8987f566324d2e1819b7df71b85c6f871e630 (plain)
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
30
{
  lib,
  buildDunePackage,
  fetchurl,
  camlp-streams,
}:

buildDunePackage (finalAttrs: {
  pname = "ocamlify";
  version = "0.1.0";

  src = fetchurl {
    url = "https://github.com/gildor478/ocamlify/releases/download/v${finalAttrs.version}/ocamlify-${finalAttrs.version}.tbz";
    hash = "sha256-u0pGiwLR/5N0eRv+eSkdR71snyiSDPwh8JwuxbcXIGA=";
  };

  propagatedBuildInputs = [
    camlp-streams
  ];

  doCheck = true;
  dontStrip = true;

  meta = {
    homepage = "https://github.com/gildor478/ocamlify";
    description = "Include files in OCaml code";
    license = lib.licenses.lgpl21;
    mainProgram = "ocamlify";
  };
})