2018-12-30 14:18:10 +01:00
|
|
|
{ stdenv, fetchFromGitHub, pkgconfig, intltool, libtool, gnome3, glib,
|
|
|
|
gtk3, libgtop, bamf, json-glib, libcanberra-gtk3, libxkbcommon,
|
|
|
|
libstartup_notification, deepin-wallpapers, deepin-desktop-schemas,
|
2019-07-22 04:53:18 +02:00
|
|
|
deepin, wrapGAppsHook }:
|
2018-10-15 21:07:23 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "deepin-metacity";
|
2018-12-30 14:18:10 +01:00
|
|
|
version = "3.22.24";
|
2018-10-15 21:07:23 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "linuxdeepin";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2018-12-30 14:18:10 +01:00
|
|
|
sha256 = "1im0wz1zlxiag4kpp5d4hv0aa0ybr4bizarr3903hrqv0lp46hyx";
|
2018-10-15 21:07:23 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
pkgconfig
|
|
|
|
intltool
|
|
|
|
libtool
|
2018-12-30 14:18:10 +01:00
|
|
|
glib.dev
|
2018-10-15 21:07:23 +02:00
|
|
|
gnome3.gnome-common
|
2019-07-22 04:53:18 +02:00
|
|
|
wrapGAppsHook
|
2018-10-15 21:07:23 +02:00
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
gnome3.dconf
|
2019-03-09 12:41:12 +01:00
|
|
|
gtk3
|
2019-03-23 05:50:12 +01:00
|
|
|
libgtop
|
2018-10-15 21:07:23 +02:00
|
|
|
gnome3.zenity
|
|
|
|
bamf
|
|
|
|
json-glib
|
|
|
|
libcanberra-gtk3
|
|
|
|
libstartup_notification
|
|
|
|
libxkbcommon
|
|
|
|
deepin-wallpapers
|
|
|
|
deepin-desktop-schemas
|
|
|
|
];
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
sed -i src/ui/deepin-background-cache.c \
|
|
|
|
-e 's;/usr/share/backgrounds/default_background.jpg;${deepin-wallpapers}/share/backgrounds/deepin/desktop.jpg;'
|
|
|
|
'';
|
|
|
|
|
2018-12-30 14:18:10 +01:00
|
|
|
NIX_CFLAGS_COMPILE = "-I${glib.dev}/include/gio-unix-2.0";
|
2018-10-15 21:07:23 +02:00
|
|
|
|
|
|
|
configureFlags = [ "--disable-themes-documentation" ];
|
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
HOME=$TMP
|
|
|
|
NOCONFIGURE=1 ./autogen.sh
|
|
|
|
'';
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2019-08-15 14:41:18 +02:00
|
|
|
passthru.updateScript = deepin.updateScript { inherit ;name = "${pname}-${version}"; };
|
2018-10-30 23:17:45 +01:00
|
|
|
|
2018-10-15 21:07:23 +02:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "2D window manager for Deepin";
|
|
|
|
homepage = https://github.com/linuxdeepin/deepin-metacity;
|
|
|
|
license = licenses.gpl3;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ romildo ];
|
|
|
|
};
|
|
|
|
}
|