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