# Pastebin GBdIOszI (define-module (pkill9 packages wayfire) #:use-module (guix download) #:use-module (guix build-system meson) #:use-module ((guix licenses) #:prefix license:) #:use-module (guix utils) ;; for add-configure-flag #:use-module (guix packages) #:use-module (gnu packages) #:use-module (gnu packages maths) #:use-module (gnu packages pkg-config) #:use-module (gnu packages freedesktop) #:use-module (gnu packages gtk) #:use-module (gnu packages xdisorg) #:use-module (gnu packages gl) #:use-module (gnu packages xorg) #:use-module (gnu packages bash) ;; for wrap-program #:use-module (gnu packages wm)) ;; for wlroots (define* (add-configure-flag package configure-flag) (substitute-keyword-arguments (package-arguments package) ((#:configure-flags cf) `(cons ,configure-flag ,cf)))) (define-public wlroots-0.8.1 (package (inherit wlroots) (name "wlroots") (version "0.8.1") (source (origin (method url-fetch) (uri (string-append "https://github.com" "/swaywm/wlroots/releases/download/" version "/" "wlroots-" version ".tar.gz")) (sha256 (base32 "160dj2s2c6ghi6fgcgzqa9rdnn1k5vy6m9dx1dkbd68nwbh8car0")))) (arguments (add-configure-flag wlroots "-Dwerror=false")))) (define-public wayfire (package (name "wayfire") (version "0.3") (source (origin (method url-fetch) (uri (string-append "https://github.com/WayfireWM" "/wayfire/releases/download/0.3.0/" "wayfire-0.3.tar.xz")) (sha256 (base32 "11py8f8vknqw1kmlj4g9p6b0zbrjyd30bsr4ssyxxnih23c4xi89")))) (build-system meson-build-system) (native-inputs `(("pkg-config" ,pkg-config))) (inputs `(("bash" ,bash) ("glm" ,glm) ("wayland" ,wayland) ("wayland-protocols" ,wayland-protocols) ("cairo" ,cairo) ("libdrm" ,libdrm) ("mesa" ,mesa) ("libinput" ,libinput) ("libxkbcommon" ,libxkbcommon) ("libevdev" ,libevdev) ("wlroots" ,wlroots-0.8.1))) (arguments `(#:phases (modify-phases %standard-phases (add-before 'configure 'set-ldflags-for-wlroots (lambda* (#:key inputs #:allow-other-keys) (setenv "LDFLAGS" (string-append "-ldl " (assoc-ref inputs "wlroots") "/lib/libwlroots.so")) #t)) (add-after 'install 'wrap-executable-with-ld-library-path-for-wf-config (lambda* (#:key inputs outputs #:allow-other-keys) (let* ((out (assoc-ref outputs "out"))) (wrap-program (string-append out "/bin/wayfire") `("LD_LIBRARY_PATH" ":" prefix (,(string-append out "/lib")))))))))) (home-page "https://wayfire.org") (synopsis "Wayland compositor") (description "Wayland compositor extendable with plugins.") (license license:expat))) wayfire