2021-02-05 17:12:51 +00:00
|
|
|
{ lib, unzip, opam, ocamlPackages }:
|
|
|
|
|
|
|
|
ocamlPackages.buildDunePackage {
|
|
|
|
pname = "opam-installer";
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
duneVersion = "3";
|
2021-02-05 17:12:51 +00:00
|
|
|
|
|
|
|
inherit (opam) version src;
|
|
|
|
nativeBuildInputs = [ unzip ];
|
|
|
|
|
|
|
|
configureFlags = [ "--disable-checks" "--prefix=$out" ];
|
|
|
|
buildInputs = with ocamlPackages; [ opam-format cmdliner ];
|
|
|
|
|
|
|
|
meta = opam.meta // {
|
|
|
|
description = "Handle (un)installation from opam install files";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "opam-installer";
|
2021-02-05 17:12:51 +00:00
|
|
|
};
|
|
|
|
}
|