about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/ocaml-modules/pipebang/default.nix
blob: e2bd4d3ec5c8f1332e9bca0e1763a8758f22c337 (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
{ lib, buildOcaml, fetchFromGitHub, camlp4 }:

buildOcaml rec {
  pname = "pipebang";
  version = "113.00.00";

  minimumSupportedOcamlVersion = "4.00";

  src = fetchFromGitHub {
    owner = "janestreet";
    repo = "pipebang";
    rev = version;
    sha256 = "sha256-9A3X/ciL5HtuKQ5awS+hDDBLL5ytOr12wHsmJLNRn+Q=";
  };

  strictDeps = true;

  propagatedBuildInputs = [ camlp4 ];

  meta = with lib; {
    homepage = "https://github.com/janestreet/pipebang";
    description = "Syntax extension to transform x |! f into f x";
    license = licenses.asl20;
    maintainers = [ maintainers.ericbmerritt ];
  };
}