10 gobject-introspection,
16 libstartup_notification,
28 gsettings-desktop-schemas,
51 stdenv.mkDerivation (finalAttrs: {
61 src = fetchFromGitHub {
62 owner = "BuddiesOfBudgie";
64 rev = "v${finalAttrs.version}";
65 hash = "sha256-A8FmW2o2p5B5pxTZ6twwufyhfppuMXjnMKopZRD+XdE=";
69 # Fix build with separate sysprof.
70 # https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2572
72 url = "https://gitlab.gnome.org/GNOME/mutter/-/commit/285a5a4d54ca83b136b787ce5ebf1d774f9499d5.patch";
73 hash = "sha256-/npUE3idMSTVlFptsDpZmGWjZ/d2gqruVlJKq4eF4xU=";
83 propagatedBuildInputs = [
84 # required for pkg-config to detect magpie-clutter
111 gnome.gnome-settings-daemon
112 gobject-introspection
113 gsettings-desktop-schemas
119 libstartup_notification
128 sysprof # for D-Bus interfaces
134 patchShebangs src/backends/native/gen-default-modes.py
135 # Magpie does not install any .desktop files
136 substituteInPlace scripts/mesonPostInstall.sh --replace "update-desktop-database" "# update-desktop-database"
138 # https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3187
139 substituteInPlace meson.build \
140 --replace "dependency('sysprof-4')" "dependency('sysprof-6')"
144 # Cannot be in postInstall, otherwise _multioutDocs hook in preFixup will move right back.
145 # TODO: Move this into a directory devhelp can find.
146 moveToOutput "share/magpie-0/doc" "$devdoc"
149 # Install udev files into our own tree.
150 PKG_CONFIG_UDEV_UDEVDIR = "${placeholder "out"}/lib/udev";
152 separateDebugInfo = true;
155 libdir = "${finalAttrs.finalPackage}/lib/magpie-0";
158 libdirExists = runCommand "magpie-libdir-exists" { } ''
159 if [[ ! -d ${finalAttrs.finalPackage.libdir} ]]; then
160 echo "passthru.libdir should contain a directory, “${finalAttrs.finalPackage.libdir}” is not one."
166 pkg-config = testers.hasPkgConfigModules { package = finalAttrs.finalPackage; };
169 updateScript = nix-update-script { };
173 description = "Softish fork of Mutter 43.x";
174 homepage = "https://github.com/BuddiesOfBudgie/magpie";
175 changelog = "https://github.com/BuddiesOfBudgie/magpie/releases/tag/v${finalAttrs.version}";
176 license = lib.licenses.gpl2Plus;
177 maintainers = lib.teams.budgie.members;
178 platforms = lib.platforms.linux;
183 "magpie-cogl-pango-0"