3
0
Fork 0
forked from mirrors/nixpkgs

Merge pull request #105816 from alunduil/enableFeatureAs

lib/strings: fix examples for enableFeatureAs
This commit is contained in:
Silvan Mosberger 2020-12-04 00:22:49 +01:00 committed by GitHub
commit 0272df3208
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -569,9 +569,9 @@ rec {
standard GNU Autoconf scripts.
Example:
enableFeature true "shared" "foo"
enableFeatureAs true "shared" "foo"
=> "--enable-shared=foo"
enableFeature false "shared" (throw "ignored")
enableFeatureAs false "shared" (throw "ignored")
=> "--disable-shared"
*/
enableFeatureAs = enable: feat: value: enableFeature enable feat + optionalString enable "=${value}";