about summary refs log tree commit diff
path: root/doc/languages-frameworks
diff options
context:
space:
mode:
authorPhilip Taron <philip.taron@gmail.com>2024-03-06 13:35:43 -0800
committerGitHub <noreply@github.com>2024-03-06 22:35:43 +0100
commit86ae7a6243810da69ee04483a48cac17a9e49448 (patch)
tree4e04d42661cf53cb847787842812b7df53d61f03 /doc/languages-frameworks
parentff352fc505484a6c2fcc68632e5676d4375485fd (diff)
downloadnixlib-86ae7a6243810da69ee04483a48cac17a9e49448.tar
nixlib-86ae7a6243810da69ee04483a48cac17a9e49448.tar.gz
nixlib-86ae7a6243810da69ee04483a48cac17a9e49448.tar.bz2
nixlib-86ae7a6243810da69ee04483a48cac17a9e49448.tar.lz
nixlib-86ae7a6243810da69ee04483a48cac17a9e49448.tar.xz
nixlib-86ae7a6243810da69ee04483a48cac17a9e49448.tar.zst
nixlib-86ae7a6243810da69ee04483a48cac17a9e49448.zip
Remove top level `with lib;` in docs (#293829)
Diffstat (limited to 'doc/languages-frameworks')
-rw-r--r--doc/languages-frameworks/coq.section.md8
1 files changed, 7 insertions, 1 deletions
diff --git a/doc/languages-frameworks/coq.section.md b/doc/languages-frameworks/coq.section.md
index 6ca199708377..db3724773345 100644
--- a/doc/languages-frameworks/coq.section.md
+++ b/doc/languages-frameworks/coq.section.md
@@ -55,7 +55,13 @@ Here is a simple package example. It is a pure Coq library, thus it depends on C
 ```nix
 { lib, mkCoqDerivation, version ? null
 , coq, mathcomp, mathcomp-finmap, mathcomp-bigenough }:
-with lib; mkCoqDerivation {
+
+let
+  inherit (lib) licenses maintainers switch;
+  inherit (lib.versions) range;
+in
+
+mkCoqDerivation {
   /* namePrefix leads to e.g. `name = coq8.11-mathcomp1.11-multinomials-1.5.2` */
   namePrefix = [ "coq" "mathcomp" ];
   pname = "multinomials";