mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-04-14 05:47:38 +00:00
wbg: rewrite mesonFeatureFlag
This is merely cosmetical.
This commit is contained in:
parent
9c3248f5b1
commit
a2bca8092c
@ -18,7 +18,8 @@
|
||||
|
||||
let
|
||||
# Courtesy of sternenseemann and FRidh, commit c9a7fdfcfb420be8e0179214d0d91a34f5974c54
|
||||
mesonFeatureFlag = opt: b: "-D${opt}=${if b then "enabled" else "disabled"}";
|
||||
mesonFeatureFlag = feature: flag:
|
||||
"-D${feature}=${if flag then "enabled" else "disabled"}";
|
||||
in
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
|
Loading…
Reference in New Issue
Block a user