summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMihai Fufezan <mihai@fufexan.net>2026-03-02 21:17:15 +0200
committerMihai Fufezan <mihai@fufexan.net>2026-03-29 17:32:24 +0300
commitbb84f4e91a3ac77706c4ef85e06e3bfaff487fc8 (patch)
tree792402feda25fad85fb41baf99ce6a4f18444688
parent2a16c9626097754b44e91c30d3780d097fd7dd42 (diff)
nix: separate overlay with deps
-rw-r--r--nix/overlays.nix87
1 files changed, 47 insertions, 40 deletions
diff --git a/nix/overlays.nix b/nix/overlays.nix
index 0d157701..69909051 100644
--- a/nix/overlays.nix
+++ b/nix/overlays.nix
@@ -19,12 +19,12 @@ in
default = lib.composeManyExtensions (
with self.overlays;
[
- hyprland-packages
+ hyprland
hyprland-extras
]
);
- # Packages for variations of Hyprland, dependencies included.
+ # Packages for variations of Hyprland, all dependencies included.
hyprland-packages = lib.composeManyExtensions [
# Dependencies
inputs.aquamarine.overlays.default
@@ -36,50 +36,57 @@ in
inputs.hyprutils.overlays.default
inputs.hyprwayland-scanner.overlays.default
inputs.hyprwire.overlays.default
- self.overlays.udis86
- self.overlays.glaze
-
# Hyprland packages themselves
- (
- final: _prev:
- let
- date = mkDate (self.lastModifiedDate or "19700101");
- version = "${ver}+date=${date}_${self.shortRev or "dirty"}";
- in
- {
- hyprland = final.callPackage ./default.nix {
- stdenv = final.gcc15Stdenv;
- commit = self.rev or "";
- revCount = self.sourceInfo.revCount or "";
- inherit date version;
- };
- hyprland-unwrapped = final.hyprland.override { wrapRuntimeDeps = false; };
+ self.overlays.hyprland
+ ];
- hyprland-with-tests = final.hyprland.override { withTests = true; };
+ # Hyprland with its internal dependencies.
+ hyprland = lib.composeManyExtensions (with self.overlays; [
+ udis86
+ glaze
+ hyprland-no-deps
+ ]);
- hyprland-with-hyprtester = builtins.trace ''
- hyprland-with-hyprtester was removed. Please use the hyprland package.
- Hyprtester is always built now.
- '' final.hyprland;
+ # Hyprland without any dependencies.
+ hyprland-no-deps =
+ final: _prev:
+ let
+ date = mkDate (self.lastModifiedDate or "19700101");
+ version = "${ver}+date=${date}_${self.shortRev or "dirty"}";
+ in
+ {
+ hyprland = final.callPackage ./default.nix {
+ stdenv = final.gcc15Stdenv;
+ commit = self.rev or "";
+ revCount = self.sourceInfo.revCount or "";
+ inherit date version;
+ };
- # deprecated packages
- hyprland-legacy-renderer = builtins.trace ''
- hyprland-legacy-renderer was removed. Please use the hyprland package.
- Legacy renderer is no longer supported.
- '' final.hyprland;
+ hyprland-unwrapped = final.hyprland.override { wrapRuntimeDeps = false; };
- hyprland-nvidia = builtins.trace ''
- hyprland-nvidia was removed. Please use the hyprland package.
- Nvidia patches are no longer needed.
- '' final.hyprland;
+ hyprland-with-tests = final.hyprland.override { withTests = true; };
- hyprland-hidpi = builtins.trace ''
- hyprland-hidpi was removed. Please use the hyprland package.
- For more information, refer to https://wiki.hypr.land/Configuring/XWayland.
- '' final.hyprland;
- }
- )
- ];
+ hyprland-with-hyprtester = builtins.trace ''
+ hyprland-with-hyprtester was removed. Please use the hyprland package.
+ Hyprtester is always built now.
+ '' final.hyprland;
+
+ # deprecated packages
+ hyprland-legacy-renderer = builtins.trace ''
+ hyprland-legacy-renderer was removed. Please use the hyprland package.
+ Legacy renderer is no longer supported.
+ '' final.hyprland;
+
+ hyprland-nvidia = builtins.trace ''
+ hyprland-nvidia was removed. Please use the hyprland package.
+ Nvidia patches are no longer needed.
+ '' final.hyprland;
+
+ hyprland-hidpi = builtins.trace ''
+ hyprland-hidpi was removed. Please use the hyprland package.
+ For more information, refer to https://wiki.hypr.land/Configuring/XWayland.
+ '' final.hyprland;
+ };
# Debug
hyprland-debug = lib.composeManyExtensions [