nixpkgs/pkgs/development/tools/ocaml/opam-publish/default.nix

47 lines
885 B
Nix

{ lib, fetchFromGitHub, ocamlPackages }:
let
inherit (ocamlPackages)
buildDunePackage
cmdliner
github
github-unix
lwt_ssl
opam-core
opam-format
opam-state
;
in
buildDunePackage rec {
pname = "opam-publish";
version = "2.3.0";
src = fetchFromGitHub {
owner = "ocaml-opam";
repo = pname;
rev = version;
sha256 = "sha256-CiZOljFBUUC3ExGSzzTATGqmxKjbzjRlL4aaL/fx9zI=";
};
duneVersion = "3";
buildInputs = [
cmdliner
lwt_ssl
opam-core
opam-format
opam-state
github
github-unix
];
meta = with lib; {
homepage = "https://github.com/ocaml-opam/${pname}";
description = "A tool to ease contributions to opam repositories";
mainProgram = "opam-publish";
license = with licenses; [ lgpl21Only ocamlLgplLinkingException ];
maintainers = with maintainers; [ niols ];
};
}