Merge pull request #160416 from AndersonTorres/new-misc

yambar: mesonFeatureFlag with descriptive argument names
This commit is contained in:
Anderson Torres 2022-02-17 01:27:34 -03:00 committed by GitHub
commit 9777760699
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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 = [