lol

buildOcaml: rename name to pname

+29 -23
+3 -3
pkgs/build-support/ocaml/default.nix
··· 1 1 { lib, stdenv, writeText, ocaml, findlib, ocamlbuild, camlp4 }: 2 2 3 - { name, version, nativeBuildInputs ? [], 3 + { pname ? args.name, version, nativeBuildInputs ? [], 4 4 createFindlibDestdir ? true, 5 5 dontStrip ? true, 6 6 minimumSupportedOcamlVersion ? null, ··· 17 17 lib.versionOlder minimumSupportedOcamlVersion ocaml.version; 18 18 19 19 stdenv.mkDerivation (args // { 20 - name = "ocaml-${name}-${version}"; 20 + name = "ocaml-${pname}-${version}"; 21 21 22 22 nativeBuildInputs = [ ocaml findlib ocamlbuild camlp4 ] ++ nativeBuildInputs; 23 23 24 24 setupHook = if setupHook == null && hasSharedObjects 25 25 then writeText "setupHook.sh" '' 26 - export CAML_LD_LIBRARY_PATH="''${CAML_LD_LIBRARY_PATH-}''${CAML_LD_LIBRARY_PATH:+:}''$1/lib/ocaml/${ocaml.version}/site-lib/${name}/" 26 + export CAML_LD_LIBRARY_PATH="''${CAML_LD_LIBRARY_PATH-}''${CAML_LD_LIBRARY_PATH:+:}''$1/lib/ocaml/${ocaml.version}/site-lib/${pname}/" 27 27 '' 28 28 else setupHook; 29 29
+1 -1
pkgs/development/ocaml-modules/bin_prot/default.nix
··· 5 5 else 6 6 7 7 buildOcaml rec { 8 - name = "bin_prot"; 8 + pname = "bin_prot"; 9 9 version = "112.24.00"; 10 10 11 11 minimumSupportedOcamlVersion = "4.00";
+1 -1
pkgs/development/ocaml-modules/comparelib/default.nix
··· 1 1 {lib, buildOcaml, fetchurl, type_conv}: 2 2 3 3 buildOcaml rec { 4 - name = "comparelib"; 4 + pname = "comparelib"; 5 5 version = "113.00.00"; 6 6 7 7 minimumSupportedOcamlVersion = "4.00";
+1 -1
pkgs/development/ocaml-modules/estring/default.nix
··· 5 5 else 6 6 7 7 buildOcaml rec { 8 - name = "estring"; 8 + pname = "estring"; 9 9 version = "1.3"; 10 10 11 11 src = fetchurl {
+1 -1
pkgs/development/ocaml-modules/faillib/default.nix
··· 6 6 7 7 buildOcaml rec { 8 8 minimumSupportedOcamlVersion = "4.00"; 9 - name = "faillib"; 9 + pname = "faillib"; 10 10 version = "111.17.00"; 11 11 12 12 src = fetchurl {
+1 -1
pkgs/development/ocaml-modules/herelib/default.nix
··· 2 2 3 3 buildOcaml rec { 4 4 version = "112.35.00"; 5 - name = "herelib"; 5 + pname = "herelib"; 6 6 7 7 minimumSupportedOcamlVersion = "4.00"; 8 8
+12 -6
pkgs/development/ocaml-modules/janestreet/buildOcamlJane.nix
··· 1 1 { buildOcaml, opaline, js_build_tools, ocaml_oasis, fetchurl } : 2 2 3 - { name, version ? "113.33.03", buildInputs ? [], 3 + { pname, version ? "113.33.03", buildInputs ? [], 4 4 hash ? "", 5 5 minimumSupportedOcamlVersion ? "4.02", ... 6 6 }@args: 7 7 8 8 buildOcaml (args // { 9 - inherit name version minimumSupportedOcamlVersion; 9 + inherit pname version minimumSupportedOcamlVersion; 10 10 src = fetchurl { 11 - url = "https://github.com/janestreet/${name}/archive/${version}.tar.gz"; 11 + url = "https://github.com/janestreet/${pname}/archive/${version}.tar.gz"; 12 12 sha256 = hash; 13 13 }; 14 14 ··· 20 20 dontAddStaticConfigureFlags = true; 21 21 configurePlatforms = []; 22 22 23 - configurePhase = "./configure --prefix $out"; 23 + configurePhase = '' 24 + ./configure --prefix $out 25 + ''; 24 26 25 - buildPhase = "OCAML_TOPLEVEL_PATH=`ocamlfind query findlib`/.. make"; 27 + buildPhase = '' 28 + OCAML_TOPLEVEL_PATH=`ocamlfind query findlib`/.. make 29 + ''; 26 30 27 - installPhase = "opaline -prefix $prefix -libdir $OCAMLFIND_DESTDIR ${name}.install"; 31 + installPhase = '' 32 + opaline -prefix $prefix -libdir $OCAMLFIND_DESTDIR ${pname}.install 33 + ''; 28 34 29 35 })
+3 -3
pkgs/development/ocaml-modules/janestreet/js-build-tools.nix
··· 1 1 { lib, buildOcaml, fetchurl, ocaml_oasis, opaline }: 2 2 3 3 buildOcaml rec { 4 - name = "js-build-tools"; 4 + pname = "js-build-tools"; 5 5 version = "113.33.06"; 6 6 7 7 minimumSupportedOcamlVersion = "4.02"; 8 8 9 9 src = fetchurl { 10 - url = "https://github.com/janestreet/${name}/archive/${version}.tar.gz"; 10 + url = "https://github.com/janestreet/js-build-tools/archive/${version}.tar.gz"; 11 11 sha256 = "1nvgyp4gsnlnpix3li6kr90b12iin5ihichv298p03i6h2809dia"; 12 12 }; 13 13 ··· 19 19 dontAddStaticConfigureFlags = true; 20 20 configurePlatforms = []; 21 21 configurePhase = "./configure --prefix $prefix"; 22 - installPhase = "opaline -prefix $prefix -libdir $OCAMLFIND_DESTDIR ${name}.install"; 22 + installPhase = "opaline -prefix $prefix -libdir $OCAMLFIND_DESTDIR js-build-tools.install"; 23 23 24 24 patches = [ ./js-build-tools-darwin.patch ]; 25 25
+1 -1
pkgs/development/ocaml-modules/pa_bench/default.nix
··· 1 1 {lib, buildOcaml, fetchurl, type_conv, pa_ounit}: 2 2 3 3 buildOcaml rec { 4 - name = "pa_bench"; 4 + pname = "pa_bench"; 5 5 version = "113.00.00"; 6 6 7 7 minimumSupportedOcamlVersion = "4.00";
+1 -1
pkgs/development/ocaml-modules/pa_ounit/default.nix
··· 5 5 else 6 6 7 7 buildOcaml rec { 8 - name = "pa_ounit"; 8 + pname = "pa_ounit"; 9 9 version = "113.00.00"; 10 10 11 11 src = fetchurl {
+1 -1
pkgs/development/ocaml-modules/pipebang/default.nix
··· 1 1 {lib, buildOcaml, fetchurl}: 2 2 3 3 buildOcaml rec { 4 - name = "pipebang"; 4 + pname = "pipebang"; 5 5 version = "113.00.00"; 6 6 7 7 minimumSupportedOcamlVersion = "4.00";
+1 -1
pkgs/development/ocaml-modules/type_conv/112.01.01.nix
··· 3 3 buildOcaml rec { 4 4 minimumSupportedOcamlVersion = "4.02"; 5 5 6 - name = "type_conv"; 6 + pname = "type_conv"; 7 7 version = "113.00.02"; 8 8 9 9 src = fetchurl {
+1 -1
pkgs/development/ocaml-modules/typerep/default.nix
··· 1 1 { lib, buildOcaml, fetchFromGitHub, type_conv }: 2 2 3 3 buildOcaml rec { 4 - name = "typerep"; 4 + pname = "typerep"; 5 5 version = "112.24.00"; 6 6 7 7 minimumSupportedOcamlVersion = "4.00";
+1 -1
pkgs/development/ocaml-modules/variantslib/default.nix
··· 5 5 else 6 6 7 7 buildOcaml rec { 8 - name = "variantslib"; 8 + pname = "variantslib"; 9 9 version = "109.15.03"; 10 10 11 11 minimumSupportedOcamlVersion = "4.00";