Subject: Re: bug#74567: SwayFX update to 0.4
From: John Kehayias <[email-masked]>
To: Josep Bigorra <[email-masked]>
Cc: Hilton Chain <[email-masked]>, [email-masked]
Date: Sun, 12 Jan 2025 15:56:26 +0000
List-Id: <debbugs-submit.debbugs.gnu.org>

On Wed, Nov 27, 2024 at 08:08 PM, Josep Bigorra wrote:

> Hi all!
> I have managed to get SwayFX 0.4 working nicely. This required adding a new package.
> I look forward to contributing upstream, but need some handholding in how to do that.
>

Looks like you managed (or someone helped you out) as this was done in
commit e24adc3bdf7cfeacc6aa7788d4a8292df425f6b2.

Closing, thank you!

> Here some code, showing how i managed:
>
> ```
> (define-public scenefx
>   (package
>    (name "scenefx")
>    (version "0.1")
>    (source (origin
>             (method git-fetch)
>             (uri (git-reference
>                   (url "https://github.com/wlrfx/scenefx.git")
>                   (commit version)))
>             (file-name (git-file-name name version))
>             (sha256
>              (base32
>               "1r7f8bprsn0mwlkmc8d14nr3iibljfyxypb4i06v66ghlngaw6dw"))))
>    (build-system meson-build-system)
>    (inputs (map (lambda (x) (specification->package x))
>                 `("basu"
>                   "cairo"
>                   "gdk-pixbuf"
>                   "json-c"
>                   "cmake"
>                   "pango"
>                   "libevdev"
>                   "libinput-minimal"
>                   "libxkbcommon"
>                   "pango"
>                   "pcre2"
>                   "pkg-config"
>                   "pcre2"
>                   "wayland"
>                   "wayland-protocols"
>                   "wlr-protocols"
>                   "libdrm"
>                   "[email-masked]")))
>    (home-page "https://github.com/wlrfx/scenefx.git")
>    (synopsis "SceneFX")
>    (description
>     "SceneFX")
>    (license license:expat)))
>
> (define-public sss-swayfx
>   (package
>    (inherit sway)
>    (name "swayfx")
>    (version "0.4")
>    (source (origin
>             (method git-fetch)
>             (uri (git-reference
>                   (url "https://github.com/WillPower3309/swayfx")
>                   (commit version)))
>             (file-name (git-file-name name version))
>             (sha256
>              (base32
>               "0651gbkszc8wwkiiw983m3815cfyk4c9v4mpd1nqf27a0f6qjgsm"))))
>    (build-system meson-build-system)
>    (inputs (append
>             (map (lambda(x) (specification->package x))
>                  `("basu"
>                    "cairo"
>                    "gdk-pixbuf"
>                    "json-c"
>                    "cmake"
>                    "pango"
>                    "libevdev"
>                    "libinput-minimal"
>                    "libxkbcommon"
>                    "pcre2"
>                    "pkg-config"
>                    "swaybg"
>                    "wayland"
>                    "wayland-protocols"
>                    "wlr-protocols"
>                    "libdrm"
>                    "[email-masked]"
>                    ))
>             (list scenefx pango)
>             ))
>    (home-page "https://github.com/WillPower3309/swayfx")
>    (synopsis "Sway Fork with extra options and effects")
>    (description
>     "Fork of Sway, a Wayland compositor compatible with i3.  SwayFX
> adds extra options and effects to the original Sway, such as blur, rounded
> corners, shadows, inactive window dimming, etc.")
>    (license license:expat)))
> ```