From 73ce1e980b269b57c936c8e6a2c460d0f3e8febc Mon Sep 17 00:00:00 2001 From: Mihai Fufezan Date: Wed, 17 Jul 2024 17:18:46 +0300 Subject: [PATCH] Nix: add hyprwayland-scanner dep --- flake.lock | 24 ++++++++++++++++++++++++ flake.nix | 7 +++++++ nix/default.nix | 2 ++ 3 files changed, 33 insertions(+) diff --git a/flake.lock b/flake.lock index d6d13af..f41ffb9 100644 --- a/flake.lock +++ b/flake.lock @@ -46,6 +46,29 @@ "type": "github" } }, + "hyprwayland-scanner": { + "inputs": { + "nixpkgs": [ + "nixpkgs" + ], + "systems": [ + "systems" + ] + }, + "locked": { + "lastModified": 1720215857, + "narHash": "sha256-JPdL+Qul+jEueAn8CARfcWP83eJgwkhMejQYfDvrgvU=", + "owner": "hyprwm", + "repo": "hyprwayland-scanner", + "rev": "d5fa094ca27e0039be5e94c0a80ae433145af8bb", + "type": "github" + }, + "original": { + "owner": "hyprwm", + "repo": "hyprwayland-scanner", + "type": "github" + } + }, "nixpkgs": { "locked": { "lastModified": 1712963716, @@ -66,6 +89,7 @@ "inputs": { "hyprlang": "hyprlang", "hyprutils": "hyprutils", + "hyprwayland-scanner": "hyprwayland-scanner", "nixpkgs": "nixpkgs", "systems": "systems" } diff --git a/flake.nix b/flake.nix index 79e4dd3..22cf749 100644 --- a/flake.nix +++ b/flake.nix @@ -17,6 +17,12 @@ inputs.systems.follows = "systems"; inputs.hyprutils.follows = "hyprutils"; }; + + hyprwayland-scanner = { + url = "github:hyprwm/hyprwayland-scanner"; + inputs.nixpkgs.follows = "nixpkgs"; + inputs.systems.follows = "systems"; + }; }; outputs = { @@ -44,6 +50,7 @@ hyprpaper = lib.composeManyExtensions [ inputs.hyprlang.overlays.default inputs.hyprutils.overlays.default + inputs.hyprwayland-scanner.overlays.default (final: prev: rec { hyprpaper = final.callPackage ./nix/default.nix { stdenv = final.gcc13Stdenv; diff --git a/nix/default.nix b/nix/default.nix index 3ec6642..b52e2ad 100644 --- a/nix/default.nix +++ b/nix/default.nix @@ -9,6 +9,7 @@ fribidi, hyprlang, hyprutils, + hyprwayland-scanner, libdatrie, libGL, libjpeg, @@ -46,6 +47,7 @@ stdenv.mkDerivation { nativeBuildInputs = [ cmake + hyprwayland-scanner pkg-config ];