about summary refs log tree commit diff
path: root/pkgs/development/ocaml-modules/opam-repository/default.nix
blob: ff9ad75fad86b68c0a32e7b30edebe7ff94efb9c (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
{ lib, buildDunePackage, unzip, opam-format, curl }:

buildDunePackage rec {
  pname = "opam-repository";

  minimumOCamlVersion = "4.02";

  useDune2 = true;

  inherit (opam-format) src version;

  patches = [ ./download-tool.patch ];
  postPatch = ''
    substituteInPlace src/repository/opamRepositoryConfig.ml \
      --replace "SUBSTITUTE_NIXOS_CURL_PATH" "\"${curl}/bin/curl\""
  '';

  strictDeps = true;

  nativeBuildInputs = [ unzip curl ];
  propagatedBuildInputs = [ opam-format ];

  meta = opam-format.meta // {
    description = "OPAM repository and remote sources handling, including curl/wget, rsync, git, mercurial, darcs backends";
    maintainers = with lib.maintainers; [ sternenseemann ];
  };
}