mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-21 22:43:01 +00:00
ocamlPackages.opam-repository: fix for opam 2.2
This commit is contained in:
parent
fd9cbc663d
commit
60fef87420
@ -1,25 +1,20 @@
|
||||
{ lib, buildDunePackage, unzip, opam-format, curl }:
|
||||
{ lib, buildDunePackage, opam-format, curl }:
|
||||
|
||||
buildDunePackage rec {
|
||||
pname = "opam-repository";
|
||||
|
||||
minimalOCamlVersion = "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\""
|
||||
--replace-fail "SUBSTITUTE_NIXOS_CURL_PATH" "\"${curl}/bin/curl\""
|
||||
'';
|
||||
|
||||
strictDeps = true;
|
||||
|
||||
nativeBuildInputs = [ unzip 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 ];
|
||||
|
@ -1388,9 +1388,7 @@ let
|
||||
inherit (pkgs) unzip;
|
||||
};
|
||||
|
||||
opam-repository = callPackage ../development/ocaml-modules/opam-repository {
|
||||
inherit (pkgs) unzip;
|
||||
};
|
||||
opam-repository = callPackage ../development/ocaml-modules/opam-repository { };
|
||||
|
||||
opam-state = callPackage ../development/ocaml-modules/opam-state {
|
||||
inherit (pkgs) unzip;
|
||||
|
Loading…
Reference in New Issue
Block a user