summary refs log tree commit diff
path: root/pkgs/development/tools/ocaml/opam/installer.nix
blob: 4501ddd63f0498ad3d5f795b863ec458b4bf368a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
{ lib, unzip, opam, ocamlPackages }:

ocamlPackages.buildDunePackage {
  pname = "opam-installer";

  useDune2 = true;

  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";
  };
}