nix/cmake.patch: No such file or directory
file was removed (last commits 7 hours ago)
| Git Clone URL: | https://aur.archlinux.org/hyprlock-git.git (read-only, click to copy) |
|---|---|
| Package Base: | hyprlock-git |
| Description: | Hyprland's GPU-accelerated screen locking utility |
| Upstream URL: | https://github.com/hyprwm/hyprlock |
| Licenses: | BSD-3-Clause |
| Conflicts: | hyprlock |
| Provides: | hyprlock |
| Submitter: | alba4k |
| Maintainer: | alba4k (Vaxry) |
| Last Packager: | alba4k |
| Votes: | 23 |
| Popularity: | 0.77 |
| First Submitted: | 2024-02-19 07:46 (UTC) |
| Last Updated: | 2025-09-30 08:45 (UTC) |
nix/cmake.patch: No such file or directory
file was removed (last commits 7 hours ago)
If you're still getting an error like:
/home/john/.cache/paru/clone/hyprlock-git/PKGBUILD: line 28: nix/cmake.patch: No such file or directory
You can fix it by deleting the cache for your package manager, e.g.:
rm -rf ~/.cache/paru
or
rm -rf ~/.cache/yay
looks like it builds fine manually,
@waxerski closed the ticket https://github.com/hyprwm/hyprlock/issues/220
Patching CMakeLists.txt with the patch in upstream commit f237dead6cf7c79b713168fb1053758c771a1dfe in a prepare() function fixes the problem:
diff --git a/PKGBUILD b/PKGBUILD
index aa7893c..b541c60 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -12,6 +12,6 @@ depends=('wayland' 'hyprlang>=0.4.0' 'cairo' 'pango' 'pam' 'libxkbcommon' 'libgl
makedepends=('git' 'cmake' 'ninja' 'gcc' 'gdb' 'meson' 'wayland-protocols' 'xorgproto')
-source=("${_pkgname}::git+https://github.com/hyprwm/hyprlock.git")
+source=("${_pkgname}::git+https://github.com/hyprwm/hyprlock.git" "cmake.patch")
conflicts=("${_pkgname}")
provides=("${_pkgname}")
-sha256sums=('SKIP')
+sha256sums=('SKIP' 'SKIP')
@@ -25,2 +25,7 @@ pkgver() {
+prepare() {
+ cd "${srcdir}/${_pkgname}"
+ patch -Np1 < ../cmake.patch
+}
+
build() {
As of this morning, failing to build:
-- Installing: /home/ron/.cache/pikaur/build/hyprlock-git/pkg/hyprlock-git/usr/bin/hyprlock
CMake Error at build/cmake_install.cmake:64 (install):
install command is not scriptable
add
backup=('etc/pam.d/hyprlock')
As of a commit today the package just keeps saying there's an update and then proceeds to say it's just reinstalling . But if you look at the package versions you'll see why it's doing this now.
hyprlock-git-0.1.0.r70.59997a7-1: parsing pkg list...
:: hyprlock-git-0.1.0.r70.59997a7-1 is up to date -- skipping build
loading packages...
warning: hyprlock-git-0.1.0.r8.gfd8b81ae-1 is up to date -- reinstalling
resolving dependencies...
will add it as a dependency as soon as I have a second to use my laptop
Yes, adding libglvnd fixes it.
Pinned Comments
alba4k commented on 2025-04-09 20:38 (UTC)
To report issues, open pull requests, or check out other hyprland-related packages, you can check out https://github.com/alba4k/hyprwm-pkgbuilds