mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 14:11:36 +00:00
46420bbaa3
treewide replacement of stdenv.mkDerivation rec { name = "*-${version}"; version = "*"; to pname
22 lines
507 B
Nix
22 lines
507 B
Nix
{ stdenv, fetchFromGitHub, ocaml, findlib, dune, js_of_ocaml-compiler
|
|
, camlp4, ocsigen_deriving
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
version = "3.2.1";
|
|
pname = "js_of_ocaml-camlp4";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "ocsigen";
|
|
repo = "js_of_ocaml";
|
|
rev = version;
|
|
sha256 = "1v2hfq0ra9j07yz6pj6m03hrvgys4vmx0gclchv94yywpb2wc7ik";
|
|
};
|
|
|
|
inherit (js_of_ocaml-compiler) installPhase meta;
|
|
|
|
buildInputs = [ ocaml findlib dune camlp4 ocsigen_deriving ];
|
|
|
|
buildPhase = "dune build -p js_of_ocaml-camlp4";
|
|
}
|