nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 30 lines 903 B view raw
1{ 2 buildDunePackage, 3 fetchurl, 4 lib, 5 ppxlib, 6 version ? if lib.versionAtLeast ppxlib.version "0.36" then "0.17.0" else "0.16.0", 7}: 8 9buildDunePackage (finalAttrs: { 10 pname = "reason-react-ppx"; 11 inherit version; 12 minimalOCamlVersion = "4.14"; 13 src = fetchurl { 14 url = "https://github.com/reasonml/reason-react/releases/download/${finalAttrs.version}/reason-react-${finalAttrs.version}.tbz"; 15 hash = 16 { 17 "0.16.0" = "sha256-esPB+mvHHTQ3mUYILrkOjMELJxRDIsWleFcxIwOPQ1w="; 18 "0.17.0" = "sha256-ArZ6CL1UjcGYPBvGnvQX7Qa16+mQT3T8mETHprT/MYw="; 19 } 20 ."${finalAttrs.version}"; 21 }; 22 buildInputs = [ ppxlib ]; 23 doCheck = false; # Needs to run in reason-react, see default.nix 24 meta = { 25 description = "React.js JSX PPX"; 26 homepage = "https://github.com/reasonml/reason-react"; 27 license = lib.licenses.mit; 28 maintainers = [ lib.maintainers.vog ]; 29 }; 30})