89 lines
1.7 KiB
Nix
89 lines
1.7 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
meson,
|
|
ninja,
|
|
pkg-config,
|
|
gobject-introspection,
|
|
glib,
|
|
gnome,
|
|
mutter,
|
|
cairo,
|
|
gsettings-desktop-schemas,
|
|
wayland,
|
|
libglvnd,
|
|
libxfixes,
|
|
libxi,
|
|
atk,
|
|
libxkbcommon,
|
|
clutter,
|
|
cmake,
|
|
gnome-shell,
|
|
lcms2,
|
|
}:
|
|
|
|
stdenv.mkDerivation {
|
|
pname = "gnome-rounded-blur";
|
|
version = "unstable-2026-06-11";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "kancko";
|
|
repo = "gnome-rounded-blur";
|
|
# Replace this with a fixed commit.
|
|
rev = "master";
|
|
# Run once with lib.fakeHash, then replace with the real hash.
|
|
hash = "sha256-MBeb0/Drt0UQ/K8UaW93ae9OaV3L5nhFZB2tPwj47co=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
meson
|
|
ninja
|
|
pkg-config
|
|
gobject-introspection
|
|
cmake
|
|
];
|
|
|
|
buildInputs = [
|
|
glib
|
|
mutter
|
|
cairo
|
|
gsettings-desktop-schemas
|
|
wayland
|
|
libglvnd
|
|
libxfixes
|
|
libxi
|
|
atk
|
|
libxkbcommon
|
|
clutter
|
|
(lib.getDev mutter)
|
|
(lib.getLib mutter)
|
|
(lib.getDev gnome-shell)
|
|
(lib.getLib gnome-shell)
|
|
lcms2 # required by mutter-clutter
|
|
];
|
|
postFixup = ''
|
|
for libfile in $out/lib/libblur-effect-1.0.so*; do
|
|
if [ -f "$libfile" ] && [ ! -L "$libfile" ]; then
|
|
patchelf --set-rpath "${
|
|
lib.makeLibraryPath [
|
|
glib
|
|
wayland
|
|
(lib.getLib mutter)
|
|
]
|
|
}:$out/lib" "$libfile"
|
|
fi
|
|
done
|
|
'';
|
|
# The upstream meson file installs:
|
|
# - libblur-effect-1.0.so*
|
|
# - Blur-1.0.gir
|
|
# - Blur-1.0.typelib
|
|
# See src/meson.build.
|
|
meta = {
|
|
description = "Rounded blur GObject library for GNOME Shell extensions";
|
|
homepage = "https://github.com/kancko/gnome-rounded-blur";
|
|
license = lib.licenses.gpl3Plus;
|
|
platforms = lib.platforms.linux;
|
|
};
|
|
} |