This commit is contained in:
Daniel Ziltener 2024-04-09 23:47:18 +02:00
parent 2f6454c6b6
commit 9e7aab702e
Signed by: zilti
GPG key ID: B38976E82C9DAE42

View file

@ -227,6 +227,7 @@ command line tool called @code{udcli} that incorporates the library.")
(build-system meson-build-system) (build-system meson-build-system)
(arguments (arguments
(list #:build-type "release" (list #:build-type "release"
#:parallel-build? #t
#:phases #:phases
#~(modify-phases %standard-phases #~(modify-phases %standard-phases
(add-after 'unpack 'fix-path (add-after 'unpack 'fix-path
@ -397,7 +398,7 @@ more.")
(define-public hyprlock (define-public hyprlock
(package (package
(name "hyprlock") (name "hyprlock")
(version "0.2.0") (version "0.3.0")
(source (origin (source (origin
(method git-fetch) (method git-fetch)
(uri (git-reference (uri (git-reference
@ -405,17 +406,25 @@ more.")
(commit (string-append "v" version)))) (commit (string-append "v" version))))
(sha256 (sha256
(base32 (base32
"0vj8jfflc8zw769dqdqq7ms3dfafsirb2c0g37xsqkc4rzzri7nn")))) "0w2a25hivn8xd8p05vc9xg57rd9siv12dwmr4skpqx4dcmxxbg5d"))))
(build-system cmake-build-system) (build-system cmake-build-system)
(arguments (arguments
(list (list
#:phases #~(modify-phases %standard-phases #:parallel-build? #t
(delete 'check)))) #:phases #~(modify-phases
%standard-phases
(delete 'check)
;; https://github.com/hyprwm/hyprlock/issues/220
(add-after 'unpack 'patch-cmakelists
(lambda _
(invoke "sed" "-zi" "s/install(CODE.*)/install(FILES \"${CMAKE_SOURCE_DIR}\\/pam\\/hyprlock\" DESTINATION \"${CMAKE_INSTALL_FULL_SYSCONFDIR}\\/pam.d\")/" "CMakeLists.txt")
(invoke "cat" "CMakeLists.txt"))))))
(native-inputs (native-inputs
(list gcc-13 (list gcc-13
pkg-config)) pkg-config))
(inputs (inputs
(list cairo-for-hyprland (list cairo-for-hyprland
egl-gbm
pango pango
linux-pam linux-pam
mesa mesa