Skip to content

Instantly share code, notes, and snippets.

@tyrion
Last active May 19, 2021 14:00
Show Gist options
  • Save tyrion/48592c673760c9dfe2b2618529290750 to your computer and use it in GitHub Desktop.
Save tyrion/48592c673760c9dfe2b2618529290750 to your computer and use it in GitHub Desktop.
{ stdenv, fetchFromGitHub, coreutils, ocamlPackages, zlib, pcre, neko, mbedtls
, ocaml-sha # put this into ocamlPackages
}:
stdenv.mkDerivation rec {
pname = "haxe";
version = "4.1.5";
src = fetchFromGitHub {
owner = "HaxeFoundation";
repo = "haxe";
rev = version;
sha256 = "0rns6d28qzkbai6yyws08yzbyvxfn848nj0fsji7chdi0y7pzzj0";
fetchSubmodules = true;
};
dontStrip = true;
makeFlags = [
"INSTALL_DIR=$(out)"
"BRANCH=HEAD"
"COMMIT_DATE=20201231082044"
"COMMIT_SHA=5e33a78aa"
"all"
"tools"
];
buildInputs = with ocamlPackages; [
ocaml
findlib
camlp5
dune_2
xml-light
sedlex_2
ocaml_extlib
ptmap
ocaml-migrate-parsetree
ppx_tools_versioned
ocaml-sha
] ++ [
zlib
pcre
neko
mbedtls
];
}
{ buildDunePackage, fetchFromGitHub }:
buildDunePackage rec {
pname = "sha";
version = "1.13";
useDune2 = true;
src = fetchFromGitHub {
owner = "djs55";
repo = "ocaml-sha";
rev = "v${version}";
sha256 = "0z1mrc4rvxvrgahxc4si6mcm5ap45fsxzmpdifylaxavdfcaqz1b";
};
}
@boronine
Copy link

Thank you for this gist. Works perfectly for us at HSLuv: https://github.com/hsluv/hsluv

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment