diff --git a/flake.lock b/flake.lock index b70d187..ef4f04f 100644 --- a/flake.lock +++ b/flake.lock @@ -29,14 +29,16 @@ "nixpkgs": [ "nixpkgs" ], - "systems": "systems" + "systems": [ + "systems" + ] }, "locked": { - "lastModified": 1725188252, - "narHash": "sha256-yBH8c4GDaEAtBrh+BqIlrx5vp6gG/Gu8fQQK63KAQgs=", + "lastModified": 1725997860, + "narHash": "sha256-d/rZ/fHR5l1n7PeyLw0StWMNLXVU9c4HFyfskw568so=", "owner": "hyprwm", "repo": "hyprlang", - "rev": "c12ab785ce1982f82594aff03b3104c598186ddd", + "rev": "dfeb5811dd6485490cce18d6cc1e38a055eea876", "type": "github" }, "original": { @@ -70,13 +72,59 @@ "type": "github" } }, + "hyprutils_2": { + "inputs": { + "nixpkgs": [ + "nixpkgs" + ], + "systems": [ + "systems" + ] + }, + "locked": { + "lastModified": 1724966483, + "narHash": "sha256-WXDgKIbzjYKczxSZOsJplCS1i1yrTUpsDPuJV/xpYLo=", + "owner": "hyprwm", + "repo": "hyprutils", + "rev": "8976e3f6a5357da953a09511d0c7f6a890fb6ec2", + "type": "github" + }, + "original": { + "owner": "hyprwm", + "repo": "hyprutils", + "type": "github" + } + }, + "hyprwayland-scanner": { + "inputs": { + "nixpkgs": [ + "nixpkgs" + ], + "systems": [ + "systems" + ] + }, + "locked": { + "lastModified": 1726840673, + "narHash": "sha256-HIPEXyRRVZoqD6U+lFS1B0tsIU7p83FaB9m7KT/x6mQ=", + "owner": "hyprwm", + "repo": "hyprwayland-scanner", + "rev": "b68dab23fc922eae99306988133ee80a40b39ca5", + "type": "github" + }, + "original": { + "owner": "hyprwm", + "repo": "hyprwayland-scanner", + "type": "github" + } + }, "nixpkgs": { "locked": { - "lastModified": 1725103162, - "narHash": "sha256-Ym04C5+qovuQDYL/rKWSR+WESseQBbNAe5DsXNx5trY=", + "lastModified": 1726463316, + "narHash": "sha256-gI9kkaH0ZjakJOKrdjaI/VbaMEo9qBbSUl93DnU7f4c=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "12228ff1752d7b7624a54e9c1af4b222b3c1073b", + "rev": "99dc8785f6a0adac95f5e2ab05cc2e1bf666d172", "type": "github" }, "original": { @@ -90,8 +138,10 @@ "inputs": { "hyprland-protocols": "hyprland-protocols", "hyprlang": "hyprlang", + "hyprutils": "hyprutils_2", + "hyprwayland-scanner": "hyprwayland-scanner", "nixpkgs": "nixpkgs", - "systems": "systems_2" + "systems": "systems" } }, "systems": { @@ -108,21 +158,6 @@ "repo": "default-linux", "type": "github" } - }, - "systems_2": { - "locked": { - "lastModified": 1689347949, - "narHash": "sha256-12tWmuL2zgBgZkdoB6qXZsgJEH9LR3oUgpaQq2RbI80=", - "owner": "nix-systems", - "repo": "default-linux", - "rev": "31732fcf5e8fea42e59c2488ad31a0e651500f68", - "type": "github" - }, - "original": { - "owner": "nix-systems", - "repo": "default-linux", - "type": "github" - } } }, "root": "root", diff --git a/flake.nix b/flake.nix index 338c84f..5d484a3 100644 --- a/flake.nix +++ b/flake.nix @@ -16,6 +16,19 @@ hyprlang = { url = "github:hyprwm/hyprlang"; inputs.nixpkgs.follows = "nixpkgs"; + inputs.systems.follows = "systems"; + }; + + hyprutils = { + url = "github:hyprwm/hyprutils"; + inputs.nixpkgs.follows = "nixpkgs"; + inputs.systems.follows = "systems"; + }; + + hyprwayland-scanner = { + url = "github:hyprwm/hyprwayland-scanner"; + inputs.nixpkgs.follows = "nixpkgs"; + inputs.systems.follows = "systems"; }; }; @@ -30,10 +43,7 @@ pkgsFor = eachSystem (system: import nixpkgs { localSystem = system; - overlays = [ - inputs.hyprland-protocols.overlays.default - self.overlays.xdg-desktop-portal-hyprland - ]; + overlays = [self.overlays.default]; }); in { overlays = import ./nix/overlays.nix {inherit self inputs lib;}; diff --git a/nix/default.nix b/nix/default.nix index e0d0250..cfc9e86 100644 --- a/nix/default.nix +++ b/nix/default.nix @@ -4,11 +4,12 @@ cmake, makeWrapper, pkg-config, - wayland-scanner, wrapQtAppsHook, hyprland, hyprland-protocols, hyprlang, + hyprutils, + hyprwayland-scanner, libdrm, mesa, pipewire, @@ -20,6 +21,7 @@ systemd, wayland, wayland-protocols, + wayland-scanner, debug ? false, version ? "git", }: @@ -37,13 +39,14 @@ stdenv.mkDerivation { cmake makeWrapper pkg-config - wayland-scanner wrapQtAppsHook + hyprwayland-scanner ]; buildInputs = [ hyprland-protocols hyprlang + hyprutils libdrm mesa pipewire @@ -54,6 +57,7 @@ stdenv.mkDerivation { systemd wayland wayland-protocols + wayland-scanner ]; cmakeBuildType = diff --git a/nix/overlays.nix b/nix/overlays.nix index 93dc86b..016cf73 100644 --- a/nix/overlays.nix +++ b/nix/overlays.nix @@ -20,6 +20,8 @@ in { xdg-desktop-portal-hyprland inputs.hyprlang.overlays.default inputs.hyprland-protocols.overlays.default + inputs.hyprutils.overlays.default + inputs.hyprwayland-scanner.overlays.default ]); xdg-desktop-portal-hyprland = lib.composeManyExtensions [ (final: prev: {