depot/third_party/nixpkgs/pkgs/development/ocaml-modules/opam-repository/default.nix
Default email 5ca88bfbb9 Project import generated by Copybara.
GitOrigin-RevId: 9f918d616c5321ad374ae6cb5ea89c9e04bf3e58
2024-07-31 10:19:44 +00:00

22 lines
648 B
Nix

{ lib, buildDunePackage, opam-format, curl }:
buildDunePackage rec {
pname = "opam-repository";
inherit (opam-format) src version;
patches = [ ./download-tool.patch ];
postPatch = ''
substituteInPlace src/repository/opamRepositoryConfig.ml \
--replace-fail "SUBSTITUTE_NIXOS_CURL_PATH" "\"${curl}/bin/curl\""
'';
propagatedBuildInputs = [ opam-format ];
configureFlags = [ "--disable-checks" ];
meta = opam-format.meta // {
description = "OPAM repository and remote sources handling, including curl/wget, rsync, git, mercurial, darcs backends";
maintainers = with lib.maintainers; [ sternenseemann ];
};
}