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

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

  duneVersion = "3";

  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";
    mainProgram = "opam-installer";
  };
}