mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-21 22:43:01 +00:00
buildDunePackage: allow overriding stdenv
This commit is contained in:
parent
d66f976cee
commit
cadeeaa525
@ -4,14 +4,15 @@
|
|||||||
|
|
||||||
let Dune =
|
let Dune =
|
||||||
let dune-version = args.duneVersion or "3"; in
|
let dune-version = args.duneVersion or "3"; in
|
||||||
{ "1" = dune_1; "2" = dune_2; "3" = dune_3; }."${dune-version}"
|
{ "1" = dune_1; "2" = dune_2; "3" = dune_3; }."${dune-version}";
|
||||||
; in
|
stdenv' = args.stdenv or stdenv;
|
||||||
|
in
|
||||||
|
|
||||||
if args ? minimalOCamlVersion && lib.versionOlder ocaml.version args.minimalOCamlVersion
|
if args ? minimalOCamlVersion && lib.versionOlder ocaml.version args.minimalOCamlVersion
|
||||||
then throw "${pname}-${version} is not available for OCaml ${ocaml.version}"
|
then throw "${pname}-${version} is not available for OCaml ${ocaml.version}"
|
||||||
else
|
else
|
||||||
|
|
||||||
stdenv.mkDerivation ({
|
stdenv'.mkDerivation ({
|
||||||
|
|
||||||
inherit enableParallelBuilding;
|
inherit enableParallelBuilding;
|
||||||
dontAddStaticConfigureFlags = true;
|
dontAddStaticConfigureFlags = true;
|
||||||
|
Loading…
Reference in New Issue
Block a user