From a6bd31fa2c5f26fc37e255de36265e309698529e Mon Sep 17 00:00:00 2001 From: John Titor <50095635+JohnRTitor@users.noreply.github.com> Date: Mon, 6 May 2024 15:21:01 +0530 Subject: [PATCH 1/2] hyprlock: 0.3.0 -> 0.3.0-unstable-2024-04-24 this adds support for jpeg and webp wallpapers remove cmake.patch as it is no longer needed add dependencies as per https://github.com/hyprwm/hyprlock/commit/415262065fff0a04b229cd00165f346a86a0a73a --- pkgs/by-name/hy/hyprlock/cmake.patch | 15 --------------- pkgs/by-name/hy/hyprlock/package.nix | 18 ++++++++++-------- 2 files changed, 10 insertions(+), 23 deletions(-) delete mode 100644 pkgs/by-name/hy/hyprlock/cmake.patch diff --git a/pkgs/by-name/hy/hyprlock/cmake.patch b/pkgs/by-name/hy/hyprlock/cmake.patch deleted file mode 100644 index 92c21d643c0f..000000000000 --- a/pkgs/by-name/hy/hyprlock/cmake.patch +++ /dev/null @@ -1,15 +0,0 @@ -diff --git a/CMakeLists.txt b/CMakeLists.txt -index 07e2338..720810b 100644 ---- a/CMakeLists.txt -+++ b/CMakeLists.txt -@@ -83,9 +83,4 @@ protocol("unstable/linux-dmabuf/linux-dmabuf-unstable-v1.xml" "linux-dmabuf-unst - # Installation - install(TARGETS hyprlock) - --install(CODE " -- if (NOT EXISTS \"${CMAKE_INSTALL_FULL_SYSCONFDIR}/pam.d/hyprlock\") -- install(FILES \"${CMAKE_SOURCE_DIR}/pam/hyprlock\" DESTINATION \"${CMAKE_INSTALL_FULL_SYSCONFDIR}/pam.d\") -- endif() --") -- -+install(FILES "${CMAKE_SOURCE_DIR}/pam/hyprlock" DESTINATION "${CMAKE_INSTALL_FULL_SYSCONFDIR}/pam.d") diff --git a/pkgs/by-name/hy/hyprlock/package.nix b/pkgs/by-name/hy/hyprlock/package.nix index fb59a96321a0..5bf1649b86c3 100644 --- a/pkgs/by-name/hy/hyprlock/package.nix +++ b/pkgs/by-name/hy/hyprlock/package.nix @@ -10,6 +10,9 @@ , wayland , wayland-protocols , cairo +, file +, libjpeg +, libwebp , pango , libdrm , mesa @@ -18,20 +21,16 @@ stdenv.mkDerivation (finalAttrs: { pname = "hyprlock"; - version = "0.3.0"; + version = "0.3.0-unstable-2024-04-24"; src = fetchFromGitHub { owner = "hyprwm"; repo = "hyprlock"; - rev = "v${finalAttrs.version}"; - hash = "sha256-rbzVe2WNdHynJrnyJsKOOrV8yuuJ7QIuah3ZHWERSnA="; + # FIXME: Change to a stable release once available + rev = "415262065fff0a04b229cd00165f346a86a0a73a"; + hash = "sha256-jla5Wo0Qt3NEnD0OjNj85BGw0pR4Zlz5uy8AqHH7tuE="; }; - patches = [ - # remove PAM file install check - ./cmake.patch - ]; - strictDeps = true; nativeBuildInputs = [ @@ -41,9 +40,12 @@ stdenv.mkDerivation (finalAttrs: { buildInputs = [ cairo + file hyprlang libdrm libGL + libjpeg + libwebp libxkbcommon mesa pam From 66d13063df6449d492d7712e58512d494dc2f8da Mon Sep 17 00:00:00 2001 From: John Titor <50095635+JohnRTitor@users.noreply.github.com> Date: Mon, 6 May 2024 15:30:25 +0530 Subject: [PATCH 2/2] hyprlock: format using nixfmt-rfc-style --- pkgs/by-name/hy/hyprlock/package.nix | 44 +++++++++++++++------------- 1 file changed, 24 insertions(+), 20 deletions(-) diff --git a/pkgs/by-name/hy/hyprlock/package.nix b/pkgs/by-name/hy/hyprlock/package.nix index 5bf1649b86c3..0aea3a11e58c 100644 --- a/pkgs/by-name/hy/hyprlock/package.nix +++ b/pkgs/by-name/hy/hyprlock/package.nix @@ -1,22 +1,23 @@ -{ lib -, stdenv -, fetchFromGitHub -, cmake -, pkg-config -, libGL -, libxkbcommon -, hyprlang -, pam -, wayland -, wayland-protocols -, cairo -, file -, libjpeg -, libwebp -, pango -, libdrm -, mesa -, nix-update-script +{ + lib, + stdenv, + fetchFromGitHub, + cmake, + pkg-config, + libGL, + libxkbcommon, + hyprlang, + pam, + wayland, + wayland-protocols, + cairo, + file, + libjpeg, + libwebp, + pango, + libdrm, + mesa, + nix-update-script, }: stdenv.mkDerivation (finalAttrs: { @@ -62,6 +63,9 @@ stdenv.mkDerivation (finalAttrs: { license = lib.licenses.bsd3; maintainers = with lib.maintainers; [ eclairevoyant ]; mainProgram = "hyprlock"; - platforms = [ "aarch64-linux" "x86_64-linux" ]; + platforms = [ + "aarch64-linux" + "x86_64-linux" + ]; }; })