a13cdfe520
To keep this for the future we also strictDeps where possible, including for janePackages, topkg, oasis and ocamlbuild. This makes some closures significantly smaller and makes cross compilation easier
27 lines
719 B
Nix
27 lines
719 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\""
|
|
'';
|
|
|
|
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 ];
|
|
};
|
|
}
|