summary refs log tree commit diff
diff options
context:
space:
mode:
authorAndersonTorres <torres.anderson.85@protonmail.com>2022-02-16 23:59:42 -0300
committerAndersonTorres <torres.anderson.85@protonmail.com>2022-02-16 23:59:42 -0300
commit9d07a91aebe96b9b9df5c71d059fa72f65cfc766 (patch)
tree49336270523ef94afcc6045855df7fa2f87dcfa6
parent18d06230cedf1471ef086220203d5a1ca08c542a (diff)
downloadnixpkgs-9d07a91aebe96b9b9df5c71d059fa72f65cfc766.tar
nixpkgs-9d07a91aebe96b9b9df5c71d059fa72f65cfc766.tar.gz
nixpkgs-9d07a91aebe96b9b9df5c71d059fa72f65cfc766.tar.bz2
nixpkgs-9d07a91aebe96b9b9df5c71d059fa72f65cfc766.tar.lz
nixpkgs-9d07a91aebe96b9b9df5c71d059fa72f65cfc766.tar.xz
nixpkgs-9d07a91aebe96b9b9df5c71d059fa72f65cfc766.tar.zst
nixpkgs-9d07a91aebe96b9b9df5c71d059fa72f65cfc766.zip
yambar: mesonFeatureFlag with descriptive argument names
-rw-r--r--pkgs/applications/misc/yambar/default.nix5
1 files changed, 3 insertions, 2 deletions
diff --git a/pkgs/applications/misc/yambar/default.nix b/pkgs/applications/misc/yambar/default.nix
index 3b915cae5ff..88b5046d179 100644
--- a/pkgs/applications/misc/yambar/default.nix
+++ b/pkgs/applications/misc/yambar/default.nix
@@ -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 = [