mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2025-01-06 13:16:40 +03:00
yambar: mesonFeatureFlag with descriptive argument names
This commit is contained in:
parent
18d06230ce
commit
9d07a91aeb
@ -27,7 +27,8 @@
|
|||||||
|
|
||||||
let
|
let
|
||||||
# Courtesy of sternenseemann and FRidh
|
# 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
|
in
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "yambar";
|
pname = "yambar";
|
||||||
@ -38,7 +39,7 @@ stdenv.mkDerivation rec {
|
|||||||
owner = "dnkl";
|
owner = "dnkl";
|
||||||
repo = "yambar";
|
repo = "yambar";
|
||||||
rev = version;
|
rev = version;
|
||||||
sha256 = "0d8n9hvmxj7759pfqssqcl9wvb986qsph8bnjsjm9bf97mflhy6d";
|
hash = "sha256-zXhIXT3JrVSllnYheDU2KK3NE2VYa+xuKufIXjdMFjU=";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
|
Loading…
Reference in New Issue
Block a user