bc5c98fcae
Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools. This update was made based on information from https://repology.org/metapackage/ocaml4.05.0-ppx_derivers/versions. These checks were done: - built on NixOS - Warning: no binary found that responded to help or version flags. (This warning appears even if the package isn't expected to have binaries.) - found 1.2 with grep in /nix/store/1z3j5cy1fcy8f0qhb4vfhkqk83sayq3d-ocaml4.05.0-ppx_derivers-1.2 - directory tree listing: https://gist.github.com/7778f1cdaa30a426b29cad1badb930de
29 lines
744 B
Nix
29 lines
744 B
Nix
{ stdenv, fetchFromGitHub, ocaml, findlib, jbuilder }:
|
|
|
|
if !stdenv.lib.versionAtLeast ocaml.version "4.02"
|
|
then throw "ppx_derivers is not available for OCaml ${ocaml.version}"
|
|
else
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "ocaml${ocaml.version}-ppx_derivers-${version}";
|
|
version = "1.2";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "diml";
|
|
repo = "ppx_derivers";
|
|
rev = version;
|
|
sha256 = "0bnhihl1w31as5w2czly1v3d6pbir9inmgsjg2cj6aaj9v1dzd85";
|
|
};
|
|
|
|
buildInputs = [ ocaml findlib jbuilder ];
|
|
|
|
inherit (jbuilder) installPhase;
|
|
|
|
meta = {
|
|
description = "Shared [@@deriving] plugin registry";
|
|
license = stdenv.lib.licenses.bsd3;
|
|
maintainers = [ stdenv.lib.maintainers.vbgl ];
|
|
inherit (src.meta) homepage;
|
|
inherit (ocaml.meta) platforms;
|
|
};
|
|
}
|