Skip to content

Instantly share code, notes, and snippets.

@matthewess
Last active July 26, 2019 20:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save matthewess/df1aa2a52fb8688d853405eccd76e848 to your computer and use it in GitHub Desktop.
Save matthewess/df1aa2a52fb8688d853405eccd76e848 to your computer and use it in GitHub Desktop.
reasonml-nix
{ buildDunePackage, re }:
buildDunePackage rec {
pname = "pastel";
buildInputs = [ re ];
}
{ ocamlPackages, fetchFromGitHub }:
with ocamlPackages;
let
version = "master";
src = fetchFromGitHub {
owner = "facebookexperimental";
repo = "reason-native";
rev = version;
sha256 = "1pb3xk166cqqq4j1xv2flbmxjxs65qfnjzyx95qwgimjqhngrbi9";
};
buildDunePackage = opts: buildDunePackage ({ inherit version src; minimumOCamlVersion = "4.02"; } // opts);
in
rec {
pastel = callPackage ./pastel.nix { inherit buildDunePackage; };
refmterr = callPackage ./refmterr.nix { inherit buildDunePackage pastel; };
}
{ buildDunePackage, re, atdgen, pastel }:
buildDunePackage rec {
pname = "refmterr";
buildInputs = [ re atdgen pastel ];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment