overlays: init overlays as flake-parts

flake.nix: ignore overlay(s)

nix: import self overlay
This commit is contained in:
notohh 2025-02-07 23:14:13 -05:00
parent f068b32e5d
commit 502791c2a7
Signed by: notohh
GPG key ID: BD47506D475EE86D
4 changed files with 26 additions and 1 deletions

View file

@ -24,7 +24,10 @@
stylua.enable = true;
statix.enable = true;
alejandra.enable = true;
deadnix.enable = true;
deadnix = {
enable = true;
excludes = ["technorino.nix"];
};
prettier = {
enable = true;
files = "\\.(js|ts|md|json)$";

View file

@ -16,6 +16,7 @@
inputs.hyprwayland-scanner.overlays.default
inputs.atuin.overlays.default
inputs.eww.overlays.default
inputs.self.overlays.technorino
];
config = {
allowUnfree = true;

3
overlays/default.nix Normal file
View file

@ -0,0 +1,3 @@
_: {
imports = [./technorino.nix];
}

18
overlays/technorino.nix Normal file
View file

@ -0,0 +1,18 @@
_: {
flake.overlays.technorino = final: prev: {
technorino =
prev.chatterino2.overrideAttrs
(old: {
nativeBuildInputs = with prev; [cmake pkg-config];
buildInputs = with prev; [qt6.wrapQtAppsHook qt6.qtbase qt6.qtsvg qt6.qtimageformats qt6.qttools qt6.qt5compat qt6.qtwayland boost openssl];
cmakeFlags = ["-DBUILD_WITH_QT6=ON" "-DBUILD_WITH_QTKEYCHAIN=OFF"];
src = prev.chatterino2.src.override {
owner = "2547techno";
repo = "technorino";
rev = "24fa230d7f4c726ee2b731b8d79379eb0d220b4e";
tag = null;
hash = "sha256-X74Tg2muO3Wtfc5nH4QvJdOMBVK1uacU+QZMo/5Lf6E=";
};
});
};
}