From 502791c2a77f580a26923bc4a51c275ff198ebb9 Mon Sep 17 00:00:00 2001 From: notohh <github@notohh.dev> Date: Fri, 7 Feb 2025 23:14:13 -0500 Subject: [PATCH] overlays: init overlays as flake-parts flake.nix: ignore overlay(s) nix: import self overlay --- flake.nix | 5 ++++- modules/nix.nix | 1 + overlays/default.nix | 3 +++ overlays/technorino.nix | 18 ++++++++++++++++++ 4 files changed, 26 insertions(+), 1 deletion(-) create mode 100644 overlays/default.nix create mode 100644 overlays/technorino.nix diff --git a/flake.nix b/flake.nix index 4ec63ad..ec22d8f 100755 --- a/flake.nix +++ b/flake.nix @@ -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)$"; diff --git a/modules/nix.nix b/modules/nix.nix index a6e122c..4c207ad 100644 --- a/modules/nix.nix +++ b/modules/nix.nix @@ -16,6 +16,7 @@ inputs.hyprwayland-scanner.overlays.default inputs.atuin.overlays.default inputs.eww.overlays.default + inputs.self.overlays.technorino ]; config = { allowUnfree = true; diff --git a/overlays/default.nix b/overlays/default.nix new file mode 100644 index 0000000..e44c41e --- /dev/null +++ b/overlays/default.nix @@ -0,0 +1,3 @@ +_: { + imports = [./technorino.nix]; +} diff --git a/overlays/technorino.nix b/overlays/technorino.nix new file mode 100644 index 0000000..d18431b --- /dev/null +++ b/overlays/technorino.nix @@ -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="; + }; + }); + }; +}