summary refs log tree commit diff
path: root/pkgs/development/ocaml-modules/tar/default.nix
blob: 52054958d3a0b3440b8b411ed5f8fd11bd3ecb98 (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
35
36
37
38
39
40
41
{ lib
, fetchFromGitHub
, buildDunePackage
, camlp-streams
, ppx_cstruct
, cstruct
, re
, ppx_tools
}:

buildDunePackage rec {
  pname = "tar";
  version = "2.0.1";
  src = fetchFromGitHub {
    owner = "mirage";
    repo = "ocaml-tar";
    rev = "v${version}";
    sha256 = "1zr1ak164k1jm15xwqjf1iv77kdrrahak33wrxg7lifz9nnl0dms";
  };

  useDune2 = true;

  propagatedBuildInputs = [
    camlp-streams
    ppx_cstruct
    cstruct
    re
  ];

  buildInputs = [
    ppx_tools
  ];

  doCheck = true;

  meta = {
    description = "Decode and encode tar format files from Unix";
    license = lib.licenses.mit;
    maintainers = [ lib.maintainers.ulrikstrid ];
  };
}