Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at netboot-syslinux-multiplatform 32 lines 687 B view raw
1{ lib, buildDunePackage, fetchFromGitHub 2, menhir 3}: 4 5buildDunePackage rec { 6 pname = "odate"; 7 version = "0.6"; 8 9 minimalOCamlVersion = "4.07"; 10 11 src = fetchFromGitHub { 12 owner = "hhugo"; 13 repo = pname; 14 rev = version; 15 sha256 = "1dk33lr0g2jnia2gqsm6nnc7nf256qgkm3v30w477gm6y2ppfm3h"; 16 }; 17 18 nativeBuildInputs = [ menhir ]; 19 20 # Ensure compatibility of v0.6 with menhir ≥ 20220210 21 preBuild = '' 22 substituteInPlace dune-project --replace "(using menhir 1.0)" "(using menhir 2.0)" 23 ''; 24 25 meta = { 26 description = "Date and duration in OCaml"; 27 inherit (src.meta) homepage; 28 license = lib.licenses.mit; 29 maintainers = [ lib.maintainers.vbgl ]; 30 }; 31 32}