2018-10-15 14:58:42 +01:00
|
|
|
{ stdenv, fetchFromGitHub, pkgconfig, intltool, libtool, vala, gnome3,
|
2018-12-26 20:17:47 +00:00
|
|
|
bamf, clutter-gtk, pantheon, libgee, libcanberra-gtk3, libwnck3,
|
|
|
|
deepin-menu, deepin-mutter, deepin-wallpapers,
|
|
|
|
deepin-desktop-schemas, wrapGAppsHook, deepin }:
|
2018-10-15 14:58:42 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "${pname}-${version}";
|
|
|
|
pname = "deepin-wm";
|
2018-12-26 20:17:47 +00:00
|
|
|
version = "1.9.37";
|
2018-10-15 14:58:42 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "linuxdeepin";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2018-12-26 20:17:47 +00:00
|
|
|
sha256 = "1xd2x0kyav2cxnk0bybl7lrmak1r2468slxz5a6anrdriw9l10gi";
|
2018-10-15 14:58:42 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
pkgconfig
|
|
|
|
intltool
|
|
|
|
libtool
|
|
|
|
vala
|
2018-12-26 20:17:47 +00:00
|
|
|
gnome3.gnome-common
|
|
|
|
wrapGAppsHook
|
|
|
|
deepin.setupHook
|
2018-10-15 14:58:42 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
bamf
|
|
|
|
clutter-gtk
|
2018-12-26 20:17:47 +00:00
|
|
|
deepin-desktop-schemas
|
|
|
|
deepin-menu
|
2018-10-15 14:58:42 +01:00
|
|
|
deepin-mutter
|
|
|
|
deepin-wallpapers
|
2018-12-26 20:17:47 +00:00
|
|
|
gnome3.gnome-desktop
|
|
|
|
libcanberra-gtk3
|
|
|
|
libgee
|
|
|
|
libwnck3
|
|
|
|
pantheon.granite
|
2018-10-15 14:58:42 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
postPatch = ''
|
2018-12-26 20:17:47 +00:00
|
|
|
searchHardCodedPaths
|
|
|
|
fixPath ${deepin-wallpapers} /usr/share/backgrounds src/Background/BackgroundSource.vala
|
|
|
|
# fix background path
|
|
|
|
sed -i 's|default_background.jpg|deepin/desktop.jpg|' src/Background/BackgroundSource.vala
|
2018-10-15 14:58:42 +01:00
|
|
|
'';
|
|
|
|
|
2018-12-26 20:17:47 +00:00
|
|
|
NIX_CFLAGS_COMPILE = "-DWNCK_I_KNOW_THIS_IS_UNSTABLE";
|
|
|
|
|
2018-10-15 14:58:42 +01:00
|
|
|
preConfigure = ''
|
2018-12-26 20:17:47 +00:00
|
|
|
NOCONFIGURE=1 ./autogen.sh
|
2018-10-15 14:58:42 +01:00
|
|
|
'';
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2018-10-30 22:17:45 +00:00
|
|
|
passthru.updateScript = deepin.updateScript { inherit name; };
|
|
|
|
|
2018-10-15 14:58:42 +01:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Deepin Window Manager";
|
|
|
|
homepage = https://github.com/linuxdeepin/deepin-wm;
|
|
|
|
license = licenses.gpl3;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ romildo ];
|
|
|
|
};
|
|
|
|
}
|