Conversation
|
In I'm a super new Nix user so I'm hesitant, but I'm getting errors when integrating rofi and stylix: And based on the stylix docs for nixos I have the impression it should be |
I am seeing the same error and as I am using ┏━ 1 Errors:
┃ error:
┃ … while evaluating an expression to select 'drvPath' on it
┃ at «internal»:1:552:
┃ … while evaluating strict
┃ at «internal»:1:552:
┃ (stack trace truncated; use '--show-trace' to show the full trace)
┃
┃ error: attribute 'size' missing
┃ at /nix/store/qwgmn4jsy1m17rgjpfiqlqc1chqqvmar-source/modules/rofi/hm.nix:15:72:
┃ 14| {
┃ 15| programs.rofi.font = "${fonts.monospace.name} ${toString fonts.size.popups}";
┃ | ^
┃ 16| }
┃ Did you mean sizes?
┣━━━
┗━ ∑ ⚠ Exited with 1 errors reported by nix at 17:03:43 after 28s
fixups = final: prev: {
stylix = prev.stylix.overrideAttrs (oldAttrs: {
patches = (oldAttrs.patches or []) ++ [
(final.writeText "stylix-rofi-font-fix.patch" ''
diff --git a/modules/rofi/hm.nix b/modules/rofi/hm.nix
index abcdef0..1234567 100644
--- a/modules/rofi/hm.nix
+++ b/modules/rofi/hm.nix
@@ -15,7 +15,7 @@
{
programs.rofi.font =
- "\$\{fonts.monospace.name\} \$\{toString fonts.size.popups\}";
+ "\$\{fonts.monospace.name\} \$\{toString fonts.sizes.popups\}";
}
'')
];
});
}; |
nix-community#1550 breaks build with "error: attribute 'size' is missing" so we use `fonts.sizes` instead
(cherry picked from commit 713f8da)
|
Successfully created backport PR for |
(cherry picked from commit 713f8da)
Closes: nix-community#1555 Fixes: 713f8da ("rofi: use mkTarget (nix-community#1550)") Link: nix-community#1553 Link: nix-community#1554 Co-authored-by: VuiMuich <vuimuich@quantentunnel.de> Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com> (cherry picked from commit 3a09d3f)
(cherry picked from commit 713f8da)
Closes: nix-community#1555 Fixes: 713f8da ("rofi: use mkTarget (nix-community#1550)") Link: nix-community#1553 Link: nix-community#1554 Co-authored-by: VuiMuich <vuimuich@quantentunnel.de> Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
Fixes: dea0337 ("stylix: restrict access to config while using mkTarget (nix-community#1368)") Fixes: 713f8da ("rofi: use mkTarget (nix-community#1550)")
Things done
Notify maintainers