forked from mirrors/nixpkgs
opam2json: init at v0.2
This commit is contained in:
parent
dbb17b39ba
commit
fcd75613ea
25
pkgs/development/tools/ocaml/opam2json/default.nix
Normal file
25
pkgs/development/tools/ocaml/opam2json/default.nix
Normal 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";
|
||||
};
|
||||
}
|
|
@ -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 { };
|
||||
|
|
Loading…
Reference in a new issue