lol

coqPackages.lib.overrideCoqDerivation: update documentation for overriding version

+12 -1
+12 -1
pkgs/build-support/coq/extra-lib.nix
··· 170 170 different versions of dependencies: 171 171 172 172 ```nix 173 - coqPackages.QuickCick.override { ssreflect = my-cool-ssreflect; } 173 + coqPackages.QuickChick.override { ssreflect = my-cool-ssreflect; } 174 174 ``` 175 175 176 176 whereas `overrideCoqDerivation` allows you to override arguments to the 177 177 call to `mkCoqDerivation` in the Coq library. 178 + 179 + Note that all Coq libraries in Nixpkgs have a `version` argument for 180 + easily using a different version. So if all you want to do is use a 181 + different version, and the derivation for the Coq library already has 182 + support for the version you want, you likely only need to update the 183 + `version` argument on the library derivation. This is done with 184 + `.override`: 185 + 186 + ```nix 187 + coqPackages.QuickChick.override { version = "1.4.0"; } 188 + ``` 178 189 */ 179 190 overrideCoqDerivation = f: drv: (drv.override (args: { 180 191 mkCoqDerivation = drv_: (args.mkCoqDerivation drv_).override f;