nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at 20.03 34 lines 1.0 kB view raw
1{ stdenv, fetchurl, ocaml, findlib, ocamlbuild, ocamlmod, ocamlify }: 2 3stdenv.mkDerivation { 4 version = "0.4.10"; 5 pname = "ocaml-oasis"; 6 7 # You must manually update the url, not just the version. OCamlforge keys off 8 # the number after download.php, not the filename. 9 src = fetchurl { 10 url = https://forge.ocamlcore.org/frs/download.php/1694/oasis-0.4.10.tar.gz; 11 sha256 = "13ah03pbcvrjv5lmx971hvkm9rvbvimska5wmjfvgvd20ca0gn8w"; 12 }; 13 14 createFindlibDestdir = true; 15 16 buildInputs = 17 [ 18 ocaml findlib ocamlbuild ocamlmod ocamlify 19 ]; 20 21 configurePhase = "ocaml setup.ml -configure --prefix $out"; 22 buildPhase = "ocaml setup.ml -build"; 23 installPhase = "ocaml setup.ml -install"; 24 25 meta = with stdenv.lib; { 26 homepage = http://oasis.forge.ocamlcore.org/; 27 description = "Configure, build and install system for OCaml projects"; 28 license = licenses.lgpl21; 29 platforms = ocaml.meta.platforms or []; 30 maintainers = with maintainers; [ 31 vbgl maggesi 32 ]; 33 }; 34}