I'm trying to patch qt5ct and qt6ct with their kde patch, which im doing like so:
home.packages = with pkgs; [
kdePackages.qt6ct.overrideAttrs (finalAttrs: previousAttrs: {
patches = [
fetchpatch {
url = "https://aur.archlinux.org/cgit/aur.git/plain/qt6ct-shenanigans.patch?h=qt6ct-kde";
hash = "sha256-AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=";
}
];
})
libsForQt5.qt5ct.override {
patches = [
fetchpatch {
url = "https://aur.archlinux.org/cgit/aur.git/plain/qt5ct-shenanigans.patch?h=qt5ct-kde";
hash = "sha256-AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=";
}
];
}
];
but that im getting this error
error: A definition for option `home-manager.users.claymorwan.home.packages."[definition 10-entry 3]"' is not of type `package'. Definition values:
- In `/nix/store/2p2nainh0h91ijj2724bpg1pc1z8ska5-source/NixOS/modules/home/qt.nix': <function, args: {fetchurl, lib, mkDerivation, qmake, qtbase, qtsvg, qttools}>
To start with you need parens around the things in your list. Right now your list is like:
So you want something like:
[ (kdePackages.qt6ct.overrideAttrs (...)) (libsForQt5.qt5ct.override {...}) ];
o dam yea i had forgotten abt the parens, now i do get this error tho, also good to mention that both package doesn't have any patches to beguin with
Maybe you need to use
overrideAttrsfor both packages? it doesn't seem to take patches as an argumentyea that worked, now im getting this tho:
Seems unrelated to the other issue, look through the stacktrace, it's complaining about
home-manager.users.claymorwan.fonts.fontconfig.configFile.fonts.textyea no idea why, only happens when i override these two packages
Are you sure that's related to the packages? It says it's evaluating font config.
well this only happens when i use the override on these packages so i suppose it is related