Merge pull request #181758 from NixOS/balsoft/opam2json

opam2json: init at v0.2
This commit is contained in:
Alexander Bantyev 2022-07-18 12:08:49 +04:00 committed by GitHub
commit 726e0661d0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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

@ -13946,6 +13946,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 { };