3
0
Fork 0
forked from mirrors/nixpkgs

opam2json: init at v0.2

This commit is contained in:
Alexander Bantyev 2022-07-16 14:43:23 +04:00
parent dbb17b39ba
commit fcd75613ea
No known key found for this signature in database
GPG key ID: E081FF12ADCB4AD5
2 changed files with 27 additions and 0 deletions

View file

@ -0,0 +1,25 @@
{ lib, stdenv, fetchFromGitHub, opam-installer, ocamlPackages }:
stdenv.mkDerivation rec {
pname = "opam2json";
version = "0.2";
src = fetchFromGitHub {
owner = "tweag";
repo = pname;
rev = "v${version}";
sha256 = "fe8bm/V/4r2iNxgbitT2sXBqDHQ0GBSnSUSBg/1aXoI=";
};
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";
};
}

View file

@ -13938,6 +13938,8 @@ with pkgs;
opam-installer = callPackage ../development/tools/ocaml/opam/installer.nix { };
opam2json = callPackage ../development/tools/ocaml/opam2json { };
wrapWatcom = callPackage ../development/compilers/open-watcom/wrapper.nix { };
open-watcom-v2-unwrapped = callPackage ../development/compilers/open-watcom/v2.nix { };
open-watcom-v2 = wrapWatcom open-watcom-v2-unwrapped { };