mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 06:45:16 +01:00
yambar: mesonFeatureFlag with descriptive argument names
This commit is contained in:
parent
18d06230ce
commit
9d07a91aeb
1 changed files with 3 additions and 2 deletions
|
@ -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 = [
|
||||
|
|
Loading…
Reference in a new issue