depot/third_party/nixpkgs/pkgs/development/tools/ocaml/opam2json/default.nix
Default email a3d4720129 Project import generated by Copybara.
GitOrigin-RevId: e182da8622a354d44c39b3d7a542dc12cd7baa5f
2022-12-28 22:21:41 +01:00

25 lines
729 B
Nix

{ lib, stdenv, fetchFromGitHub, opam-installer, ocamlPackages }:
stdenv.mkDerivation rec {
pname = "opam2json";
version = "0.4";
src = fetchFromGitHub {
owner = "tweag";
repo = pname;
rev = "v${version}";
sha256 = "sha256-5pXfbUfpVABtKbii6aaI2EdAZTjHJ2QntEf0QD2O5AM=";
};
buildInputs = with ocamlPackages; [ yojson opam-file-format cmdliner ];
nativeBuildInputs = with ocamlPackages; [ ocaml findlib opam-installer ];
preInstall = ''export PREFIX="$out"'';
meta = with lib; {
platforms = platforms.all;
description = "convert opam file syntax to JSON";
maintainers = [ maintainers.balsoft ];
license = licenses.gpl3;
homepage = "https://github.com/tweag/opam2json";
};
}