guix: not pin hash in repo

This commit is contained in:
4zv4l
2025-11-30 23:19:55 +08:00
committed by DreamMaoMao
parent 840f3fb403
commit 2c893c3345

View File

@@ -1,7 +1,9 @@
(define-module (mangowc) (define-module (mangowc)
#:use-module (guix packages)
#:use-module (guix download) #:use-module (guix download)
#:use-module (guix git-download) #:use-module (guix git-download)
#:use-module (guix gexp)
#:use-module (guix packages)
#:use-module (guix utils)
#:use-module (gnu packages wm) #:use-module (gnu packages wm)
#:use-module (gnu packages freedesktop) #:use-module (gnu packages freedesktop)
#:use-module (gnu packages xdisorg) #:use-module (gnu packages xdisorg)
@@ -16,21 +18,29 @@
#:use-module (guix licenses)) #:use-module (guix licenses))
(define-public mangowc (define-public mangowc-git
(package (package
(name "mangowc") (name "mangowc")
(version "0.10.4") (version "git")
(source (source (local-file "." "mangowc-checkout"
(origin #:recursive? #t
(method git-fetch) #:select? (or (git-predicate (current-source-directory))
(uri (git-reference (const #t))))
(url "https://github.com/DreamMaoMao/mangowc")
(commit "0.10.4")))
(sha256
(base32 "0cayb2r69zcp5q810bqhq27xi0b5dlk81qwl6zj6aqjphh6yzpv9"))))
(build-system meson-build-system) (build-system meson-build-system)
(arguments
(list
#:configure-flags
#~(list (string-append "-Dsysconfdir=" #$output "/etc"))
#:phases
#~(modify-phases %standard-phases
(add-before 'configure 'patch-meson
(lambda _
(substitute* "meson.build"
(("'-DSYSCONFDIR=\\\"@0@\\\"'.format\\('/etc'\\)")
"'-DSYSCONFDIR=\"@0@\"'.format(sysconfdir)")
(("sysconfdir = sysconfdir.substring\\(prefix.length\\(\\)\\)")
"")))))))
(inputs (list wayland (inputs (list wayland
wayland-protocols
libinput libinput
libdrm libdrm
libxkbcommon libxkbcommon
@@ -44,9 +54,11 @@
xcb-util-wm xcb-util-wm
wlroots wlroots
scenefx)) scenefx))
(native-inputs (list meson ninja pkg-config)) (native-inputs (list pkg-config wayland-protocols))
(home-page "https://github.com/DreamMaoMao/mangowc") (home-page "https://github.com/DreamMaoMao/mangowc")
(synopsis "Wayland compositor based on wlroots and scenefx") (synopsis "Wayland compositor based on wlroots and scenefx")
(description "A Wayland compositor based on wlroots and scenefx, (description "A Wayland compositor based on wlroots and scenefx,
inspired by dwl but aiming to be more feature-rich.") inspired by dwl but aiming to be more feature-rich.")
(license gpl3))) (license gpl3)))
mangowc-git