summary refs log tree commit diff
path: root/pkgs/development/ocaml-modules/genspio/default.nix
blob: 963cd1dab138a323967cb955e7f76c81533caf62 (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
30
31
32
33
34
{ lib, fetchFromGitHub, buildDunePackage
, nonstd, sosa
}:

buildDunePackage rec {
  pname = "genspio";
  version = "0.0.2";

  useDune2 = false;

  src = fetchFromGitHub {
    owner = "hammerlab";
    repo = pname;
    rev = "${pname}.${version}";
    sha256 = "0cp6p1f713sfv4p2r03bzvjvakzn4ili7hf3a952b3w1k39hv37x";
  };

  minimalOCamlVersion = "4.03";

  propagatedBuildInputs = [ nonstd sosa ];

  configurePhase = ''
    ocaml please.mlt configure
  '';

  doCheck = true;

  meta = with lib; {
    homepage = "https://smondet.gitlab.io/genspio-doc/";
    description = "Typed EDSL to generate POSIX Shell scripts";
    license = licenses.asl20;
    maintainers = [ maintainers.alexfmpe ];
  };
}