@@ -44,10 +44,23 @@ in
4444 enable = mkEnableOption "yabar";
4545
4646 package = mkOption {
47− default = pkgs.yabar;
48− example = literalExample "pkgs.yabar-unstable";
47+ default = pkgs.yabar-unstable;
48+ example = literalExample "pkgs.yabar";
4949 type = types.package;
5050
51+ # `yabar-stable` segfaults under certain conditions.
52+ apply = x: if x == pkgs.yabar-unstable then x else flip warn x ''
53+ It's not recommended to use `yabar' with `programs.yabar', the (old) stable release
54+ tends to segfault under certain circumstances:
55+
56+ * https://github.com/geommer/yabar/issues/86
57+ * https://github.com/geommer/yabar/issues/68
58+ * https://github.com/geommer/yabar/issues/143
59+
60+ Most of them don't occur on master anymore, until a new release is published, it's recommended
61+ to use `yabar-unstable'.
62+ '';
63+
5164 description = ''
5265 The package which contains the `yabar` binary.
5366