1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-14 00:25:24 +00:00
nixpkgs/pkgs/development/ocaml-modules/opam-repository/default.nix
2020-12-21 09:46:35 +01:00

27 lines
718 B
Nix

{ 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\""
'';
nativeBuildInputs = [ unzip ];
buildInputs = [ 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 ];
};
}