mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2025-01-02 17:09:09 +03:00
manual: document deprecated minimumOCamlVersion
This commit is contained in:
parent
4d92273036
commit
cea532f629
@ -32,9 +32,9 @@ Given that most of the OCaml ecosystem is now built with dune, nixpkgs includes
|
|||||||
|
|
||||||
Here is a simple package example.
|
Here is a simple package example.
|
||||||
|
|
||||||
- It defines an (optional) attribute `minimalOCamlVersion` that will be used to
|
- It defines an (optional) attribute `minimalOCamlVersion` (see note below)
|
||||||
throw a descriptive evaluation error if building with an older OCaml is
|
that will be used to throw a descriptive evaluation error if building with
|
||||||
attempted.
|
an older OCaml is attempted.
|
||||||
|
|
||||||
- It uses the `fetchFromGitHub` fetcher to get its source.
|
- It uses the `fetchFromGitHub` fetcher to get its source.
|
||||||
|
|
||||||
@ -117,3 +117,11 @@ buildDunePackage rec {
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Note about `minimalOCamlVersion`. A deprecated version of this argument was
|
||||||
|
spelled `minimumOCamlVersion`; setting the old attribute wrongly modifies the
|
||||||
|
derivation hash and is therefore inappropriate. As a technical dept, currently
|
||||||
|
packaged libraries may still use the old spelling: maintainers are invited to
|
||||||
|
fix this when updating packages. Massive renaming is strongly discouraged as it
|
||||||
|
would be challenging to review, difficult to test, and will cause unnecessary
|
||||||
|
rebuild.
|
||||||
|
Loading…
Reference in New Issue
Block a user