2022-07-18 16:21:45 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, opam-installer, ocamlPackages }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "opam2json";
|
2022-12-28 21:21:41 +00:00
|
|
|
version = "0.4";
|
2022-07-18 16:21:45 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "tweag";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2022-12-28 21:21:41 +00:00
|
|
|
sha256 = "sha256-5pXfbUfpVABtKbii6aaI2EdAZTjHJ2QntEf0QD2O5AM=";
|
2022-07-18 16:21:45 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
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";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "opam2json";
|
2022-07-18 16:21:45 +00:00
|
|
|
maintainers = [ maintainers.balsoft ];
|
|
|
|
license = licenses.gpl3;
|
|
|
|
homepage = "https://github.com/tweag/opam2json";
|
|
|
|
};
|
|
|
|
}
|