From 09e97f5940d99d62601c5b586b263ab615b0b8c4 Mon Sep 17 00:00:00 2001 From: vaxerski Date: Wed, 3 Jan 2024 13:03:53 +0100 Subject: [PATCH] nix: add hyprlang --- flake.lock | 21 ++++++++++++++++++++- flake.nix | 3 +++ nix/default.nix | 2 ++ 3 files changed, 25 insertions(+), 1 deletion(-) diff --git a/flake.lock b/flake.lock index 8e3f02a..fa6d320 100644 --- a/flake.lock +++ b/flake.lock @@ -1,5 +1,23 @@ { "nodes": { + "hyprlang": { + "inputs": { + "nixpkgs": "nixpkgs" + }, + "locked": { + "lastModified": 1704112024, + "narHash": "sha256-eKS5iEiyfxQYc4R0Bofxtd9rdCCDzw8kpYZx/xj6wb0=", + "owner": "hyprwm", + "repo": "hyprlang", + "rev": "5cb3d2ba62d94b1e470d308ae05a9589b22c3c07", + "type": "github" + }, + "original": { + "owner": "hyprwm", + "repo": "hyprlang", + "type": "github" + } + }, "hyprland-protocols": { "inputs": { "nixpkgs": [ @@ -43,7 +61,8 @@ "inputs": { "hyprland-protocols": "hyprland-protocols", "nixpkgs": "nixpkgs", - "systems": "systems" + "systems": "systems", + "hyprlang": "hyprlang" } }, "systems": { diff --git a/flake.nix b/flake.nix index a5e4c4e..1aafb59 100644 --- a/flake.nix +++ b/flake.nix @@ -12,6 +12,8 @@ inputs.nixpkgs.follows = "nixpkgs"; inputs.systems.follows = "systems"; }; + + hyprlang.url = "github:hyprwm/hyprlang"; }; outputs = { @@ -36,6 +38,7 @@ packages = eachSystem (system: { inherit (pkgsFor.${system}) xdg-desktop-portal-hyprland; default = self.packages.${system}.xdg-desktop-portal-hyprland; + inherit (inputs.hyprlang.packages.${system}) hyprlang; }); formatter = eachSystem (system: nixpkgs.legacyPackages.${system}.alejandra); diff --git a/nix/default.nix b/nix/default.nix index a4da0ca..f960f11 100644 --- a/nix/default.nix +++ b/nix/default.nix @@ -5,6 +5,7 @@ meson, ninja, pkg-config, + hyprlang, libdrm, mesa, pipewire, @@ -48,6 +49,7 @@ stdenv.mkDerivation { libdrm mesa pipewire + hyprlang qtbase qttools qtwayland