Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at netboot-syslinux-multiplatform 24 lines 590 B view raw
1{ lib, fetchFromGitHub, buildDunePackage, ocaml }: 2 3buildDunePackage (rec { 4 pname = "ppx_derivers"; 5 version = "1.2.1"; 6 7 minimalOCamlVersion = "4.02"; 8 9 src = fetchFromGitHub { 10 owner = "diml"; 11 repo = pname; 12 rev = version; 13 sha256 = "0yqvqw58hbx1a61wcpbnl9j30n495k23qmyy2xwczqs63mn2nkpn"; 14 }; 15 16 meta = { 17 description = "Shared [@@deriving] plugin registry"; 18 license = lib.licenses.bsd3; 19 maintainers = [ lib.maintainers.vbgl ]; 20 inherit (src.meta) homepage; 21 }; 22} // lib.optionalAttrs (!lib.versionAtLeast ocaml.version "4.08") { 23 duneVersion = "1"; 24})