nix: add qtsvg dependency by default

This commit is contained in:
outfoxxed 2024-04-19 02:46:38 -07:00
parent 23d0c2e01d
commit 54bf485101
Signed by: outfoxxed
GPG key ID: 4C88A185FB89301E

View file

@ -25,6 +25,7 @@
debug ? false, debug ? false,
enableWayland ? true, enableWayland ? true,
nvidiaCompat ? false, nvidiaCompat ? false,
svgSupport ? true, # you almost always want this
}: buildStdenv.mkDerivation { }: buildStdenv.mkDerivation {
pname = "quickshell${lib.optionalString debug "-debug"}"; pname = "quickshell${lib.optionalString debug "-debug"}";
version = "0.1.0"; version = "0.1.0";
@ -43,7 +44,9 @@
buildInputs = with pkgs; [ buildInputs = with pkgs; [
qt6.qtbase qt6.qtbase
qt6.qtdeclarative qt6.qtdeclarative
] ++ (lib.optionals enableWayland [ qt6.qtwayland wayland ]); ]
++ (lib.optionals enableWayland [ qt6.qtwayland wayland ])
++ (lib.optionals svgSupport [ qt6.qtsvg ]);
QTWAYLANDSCANNER = lib.optionalString enableWayland "${qt6.qtwayland}/libexec/qtwaylandscanner"; QTWAYLANDSCANNER = lib.optionalString enableWayland "${qt6.qtwayland}/libexec/qtwaylandscanner";