Skip to content

Instantly share code, notes, and snippets.

@thufschmitt
Created June 10, 2016 07:25
Show Gist options
  • Save thufschmitt/a15702d80667391f95aaa265ac812466 to your computer and use it in GitHub Desktop.
Save thufschmitt/a15702d80667391f95aaa265ac812466 to your computer and use it in GitHub Desktop.
{ stdenv, ocaml, ocamlPackages, makeWrapper }:
stdenv.mkDerivation rec {
name = "ocaml_with_topfind-${version}";
version = lib.getVersion ocaml;
nativeBuildInputs = [ makeWrapper ];
buildCommand = ''
makeWrapper "${ocaml}/bin/ocaml" "$out/bin/ocaml_topfind" \
--add-flags "-I ${ocamlPackages.findlib}/lib/ocaml/${version}/site-lib"
'';
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment