yambar: mesonFeatureFlag with descriptive argument names

This commit is contained in:
AndersonTorres 2022-02-16 23:59:42 -03:00
parent 18d06230ce
commit 9d07a91aeb

View file

@ -27,7 +27,8 @@
let
# Courtesy of sternenseemann and FRidh
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 {
pname = "yambar";
@ -38,7 +39,7 @@ stdenv.mkDerivation rec {
owner = "dnkl";
repo = "yambar";
rev = version;
sha256 = "0d8n9hvmxj7759pfqssqcl9wvb986qsph8bnjsjm9bf97mflhy6d";
hash = "sha256-zXhIXT3JrVSllnYheDU2KK3NE2VYa+xuKufIXjdMFjU=";
};
nativeBuildInputs = [