2018-12-11 10:00:21 +01:00
|
|
|
{ stdenv, fetchFromGitHub, pkgconfig, intltool, libtool, gnome3, gtk3,
|
|
|
|
xorg, libcanberra-gtk3, upower, xkeyboard_config, libxkbcommon,
|
|
|
|
libstartup_notification, libinput, libgudev, cogl, clutter, systemd,
|
|
|
|
gsettings-desktop-schemas, deepin-desktop-schemas, wrapGAppsHook,
|
|
|
|
deepin }:
|
2018-09-07 15:22:12 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "${pname}-${version}";
|
|
|
|
pname = "deepin-mutter";
|
2018-12-11 10:00:21 +01:00
|
|
|
version = "3.20.38";
|
2018-09-07 15:22:12 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "linuxdeepin";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2018-12-11 10:00:21 +01:00
|
|
|
sha256 = "1aq7606sgn2c6n8wfgxdryw3lprc4va0zjc0r65798w5656fdi31";
|
2018-09-07 15:22:12 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
pkgconfig
|
|
|
|
intltool
|
|
|
|
libtool
|
|
|
|
gnome3.gnome-common
|
2018-12-11 10:00:21 +01:00
|
|
|
wrapGAppsHook
|
|
|
|
deepin.setupHook
|
2018-09-07 15:22:12 +02:00
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
2018-12-11 10:00:21 +01:00
|
|
|
clutter
|
|
|
|
cogl
|
|
|
|
deepin-desktop-schemas
|
2018-09-07 15:22:12 +02:00
|
|
|
gnome3.gnome-desktop
|
|
|
|
gnome3.zenity
|
2018-12-11 10:00:21 +01:00
|
|
|
gsettings-desktop-schemas
|
|
|
|
gtk3
|
2018-09-07 15:22:12 +02:00
|
|
|
libcanberra-gtk3
|
2018-12-11 10:00:21 +01:00
|
|
|
libgudev
|
2018-09-07 15:22:12 +02:00
|
|
|
libinput
|
2018-12-11 10:00:21 +01:00
|
|
|
libstartup_notification
|
|
|
|
libxkbcommon
|
2018-09-07 15:22:12 +02:00
|
|
|
systemd
|
2018-12-11 10:00:21 +01:00
|
|
|
upower
|
|
|
|
xkeyboard_config
|
|
|
|
xorg.libxkbfile
|
2018-09-07 15:22:12 +02:00
|
|
|
];
|
|
|
|
|
2019-04-20 13:51:44 +02:00
|
|
|
patches = [
|
|
|
|
./deepin-mutter.plugins-dir.patch
|
|
|
|
];
|
|
|
|
|
2018-12-11 10:00:21 +01:00
|
|
|
postPatch = ''
|
2019-04-20 13:51:44 +02:00
|
|
|
searchHardCodedPaths # debugging
|
2019-04-20 14:54:07 +02:00
|
|
|
sed -i -e "s,Exec=deepin-mutter,Exec=$out/bin/deepin-mutter," data/mutter.desktop.in
|
2018-12-11 10:00:21 +01:00
|
|
|
'';
|
2018-09-07 15:22:12 +02:00
|
|
|
|
|
|
|
configureFlags = [
|
|
|
|
"--enable-native-backend"
|
|
|
|
"--enable-compile-warnings=minimum"
|
|
|
|
];
|
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
NOCONFIGURE=1 ./autogen.sh
|
|
|
|
'';
|
|
|
|
|
2019-04-20 13:51:44 +02:00
|
|
|
postFixup = ''
|
|
|
|
searchHardCodedPaths $out # debugging
|
|
|
|
'';
|
|
|
|
|
2018-12-11 10:00:21 +01:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2018-10-30 23:17:45 +01:00
|
|
|
passthru.updateScript = deepin.updateScript { inherit name; };
|
|
|
|
|
2018-09-07 15:22:12 +02:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Base window manager for deepin, fork of gnome mutter";
|
|
|
|
homepage = https://github.com/linuxdeepin/deepin-mutter;
|
|
|
|
license = licenses.gpl3;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ romildo ];
|
|
|
|
};
|
|
|
|
}
|