Skip to content

Commit

Permalink
flake.lock: update
Browse files Browse the repository at this point in the history
nix/overlays: add overlay to allow building until next hyprland version
  • Loading branch information
fufexan committed Dec 17, 2024
1 parent 7116c9f commit 3e884d9
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 43 deletions.
49 changes: 13 additions & 36 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@

hyprlang = {
url = "github:hyprwm/hyprlang";
inputs.hyprutils.follows = "hyprutils";
inputs.nixpkgs.follows = "nixpkgs";
inputs.systems.follows = "systems";
};
Expand Down
31 changes: 24 additions & 7 deletions nix/overlays.nix
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ in {
default = lib.composeManyExtensions [
self.overlays.xdg-desktop-portal-hyprland
self.overlays.sdbus-cpp_2
self.overlays.hypr-gcc14Stdenv
inputs.hyprland-protocols.overlays.default
inputs.hyprwayland-scanner.overlays.default
inputs.hyprlang.overlays.default
Expand Down Expand Up @@ -46,15 +47,31 @@ in {
#
# TODO: Remove this overlay after the next stable Nixpkgs release.
sdbus-cpp_2 = final: prev: {
sdbus-cpp_2 = prev.sdbus-cpp_2 or (final.sdbus-cpp.overrideAttrs (self: _: {
version = "2.0.0";
sdbus-cpp_2 =
prev.sdbus-cpp_2
or (final.sdbus-cpp.overrideAttrs (self: _: {
version = "2.0.0";

src = final.fetchFromGitHub {
owner = "Kistler-group";
repo = "sdbus-cpp";
rev = "v${self.version}";
hash = "sha256-W8V5FRhV3jtERMFrZ4gf30OpIQLYoj2yYGpnYOmH2+g=";
};
}));
};

# TODO: remove this when the next version of Hyprland is available (in Nixpkgs)
hypr-gcc14Stdenv = final: prev: {
hyprcursor = (prev.hyprcursor.override {stdenv = prev.gcc14Stdenv;}).overrideAttrs (self: super: {
src = final.fetchFromGitHub {
owner = "Kistler-group";
repo = "sdbus-cpp";
rev = "v${self.version}";
hash = "sha256-W8V5FRhV3jtERMFrZ4gf30OpIQLYoj2yYGpnYOmH2+g=";
owner = "hyprwm";
repo = "hyprcursor";
rev = "f388aacd22be4a6e4d634fbaf6f75eb0713d239a";
hash = "sha256-+2bZJL2u5hva7rSp65OfKJBK+k03T6GB/NCvpoS1OOo=";
};
}));
});
hyprlang = prev.hyprlang.override {stdenv = prev.gcc14Stdenv;};
hyprutil = prev.hyprutil.override {stdenv = prev.gcc14Stdenv;};
};
}

0 comments on commit 3e884d9

Please sign in to comment.