From b799c25fe85008cb9bba7a04ff216d740cf574ff Mon Sep 17 00:00:00 2001 From: Mihai Fufezan Date: Tue, 2 Jan 2024 23:50:49 +0200 Subject: [PATCH 1/2] hyprlang: init at 0.2.1 --- pkgs/by-name/hy/hyprlang/package.nix | 30 ++++++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 4 ++++ 2 files changed, 34 insertions(+) create mode 100644 pkgs/by-name/hy/hyprlang/package.nix diff --git a/pkgs/by-name/hy/hyprlang/package.nix b/pkgs/by-name/hy/hyprlang/package.nix new file mode 100644 index 000000000000..554426f65827 --- /dev/null +++ b/pkgs/by-name/hy/hyprlang/package.nix @@ -0,0 +1,30 @@ +{ + lib, + stdenv, + fetchFromGitHub, + cmake, +}: +stdenv.mkDerivation (finalAttrs: { + pname = "hyprlang"; + version = "0.2.1"; + + src = fetchFromGitHub { + owner = "hyprwm"; + repo = "hyprlang"; + rev = "v${finalAttrs.version}"; + hash = "sha256-KjAYC3sMyfipCHpkj0XSPw/C9KdCNlWtguQW5rEUiqo="; + }; + + nativeBuildInputs = [cmake]; + + outputs = ["out" "dev"]; + + doCheck = true; + + meta = with lib; { + homepage = "https://github.com/hyprwm/hyprlang"; + description = "The official implementation library for the hypr config language"; + license = licenses.gpl3Plus; + platforms = platforms.linux; + }; +}) diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index defcb00e9c37..dc593ae485f4 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -5709,6 +5709,10 @@ with pkgs; hyprland-protocols = callPackage ../applications/window-managers/hyprwm/hyprland-protocols { }; + hyprlang = callPackage ../by-name/hy/hyprlang/package.nix { + stdenv = gcc13Stdenv; + }; + hyprnome = callPackage ../applications/misc/hyprnome { }; hyprpaper = callPackage ../applications/window-managers/hyprwm/hyprpaper { }; From 2316bf39cd0c89ab31aee49067f9457801a723cc Mon Sep 17 00:00:00 2001 From: Mihai Fufezan Date: Thu, 4 Jan 2024 23:26:30 +0200 Subject: [PATCH 2/2] xdg-desktop-portal-hyprland: 1.2.6 -> 1.3.1 --- .../xdg-desktop-portal-hyprland/default.nix | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/pkgs/applications/window-managers/hyprwm/xdg-desktop-portal-hyprland/default.nix b/pkgs/applications/window-managers/hyprwm/xdg-desktop-portal-hyprland/default.nix index 9e17bbb61b9c..6c1d99fbb0c7 100644 --- a/pkgs/applications/window-managers/hyprwm/xdg-desktop-portal-hyprland/default.nix +++ b/pkgs/applications/window-managers/hyprwm/xdg-desktop-portal-hyprland/default.nix @@ -1,13 +1,13 @@ { lib , stdenv , fetchFromGitHub -, meson -, ninja +, cmake , pkg-config , wayland-scanner , makeWrapper , wrapQtAppsHook , hyprland-protocols +, hyprlang , libdrm , mesa , pipewire @@ -19,22 +19,22 @@ , wayland , wayland-protocols , hyprland +, hyprpicker , slurp }: stdenv.mkDerivation (self: { pname = "xdg-desktop-portal-hyprland"; - version = "1.2.6"; + version = "1.3.1"; src = fetchFromGitHub { owner = "hyprwm"; repo = "xdg-desktop-portal-hyprland"; rev = "v${self.version}"; - hash = "sha256-VRr5Xc4S/VPr/gU3fiOD3vSIL2+GJ+LUrmFTWTwnTz4="; + hash = "sha256-wP611tGIWBA4IXShWbah7TxqdbvhfcfT2vnXalX/qzk="; }; nativeBuildInputs = [ - meson - ninja + cmake pkg-config wayland-scanner makeWrapper @@ -43,6 +43,7 @@ stdenv.mkDerivation (self: { buildInputs = [ hyprland-protocols + hyprlang libdrm mesa pipewire @@ -63,7 +64,7 @@ stdenv.mkDerivation (self: { --prefix PATH ":" ${lib.makeBinPath [slurp hyprland]} wrapProgramShell $out/libexec/xdg-desktop-portal-hyprland \ - --prefix PATH ":" ${lib.makeBinPath [(placeholder "out")]} + --prefix PATH ":" ${lib.makeBinPath [(placeholder "out") hyprpicker]} ''; meta = with lib; {