Skip to content

Commit

Permalink
deepin.deepin-wm: 1.9.34 -> 1.9.37
Browse files Browse the repository at this point in the history
  • Loading branch information
romildo committed Apr 2, 2019
1 parent 8c80fca commit 4846803
Showing 1 changed file with 22 additions and 16 deletions.
38 changes: 22 additions & 16 deletions pkgs/desktops/deepin/deepin-wm/default.nix
@@ -1,49 +1,55 @@
{ stdenv, fetchFromGitHub, pkgconfig, intltool, libtool, vala, gnome3,
bamf, clutter-gtk, pantheon, libcanberra-gtk3, libwnck3,
deepin-mutter, deepin-wallpapers, deepin-desktop-schemas,
hicolor-icon-theme, deepin }:
bamf, clutter-gtk, pantheon, libgee, libcanberra-gtk3, libwnck3,
deepin-menu, deepin-mutter, deepin-wallpapers,
deepin-desktop-schemas, wrapGAppsHook, deepin }:

stdenv.mkDerivation rec {
name = "${pname}-${version}";
pname = "deepin-wm";
version = "1.9.34";
version = "1.9.37";

src = fetchFromGitHub {
owner = "linuxdeepin";
repo = pname;
rev = version;
sha256 = "13hydcalifdc6723k8l4pk905y9sxic5x1fqww0fyx7j6b3hm13f";
sha256 = "1xd2x0kyav2cxnk0bybl7lrmak1r2468slxz5a6anrdriw9l10gi";
};

nativeBuildInputs = [
pkgconfig
intltool
libtool
gnome3.gnome-common
vala
gnome3.gnome-common
wrapGAppsHook
deepin.setupHook
];

buildInputs = [
gnome3.gnome-desktop
gnome3.libgee
bamf
clutter-gtk
pantheon.granite
libcanberra-gtk3
libwnck3
deepin-desktop-schemas
deepin-menu
deepin-mutter
deepin-wallpapers
deepin-desktop-schemas
hicolor-icon-theme
gnome3.gnome-desktop
libcanberra-gtk3
libgee
libwnck3
pantheon.granite
];

postPatch = ''
sed -i src/Background/BackgroundSource.vala \
-e 's;/usr/share/backgrounds/default_background.jpg;${deepin-wallpapers}/share/backgrounds/deepin/desktop.jpg;'
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
'';

NIX_CFLAGS_COMPILE = "-DWNCK_I_KNOW_THIS_IS_UNSTABLE";

preConfigure = ''
./autogen.sh
NOCONFIGURE=1 ./autogen.sh
'';

enableParallelBuilding = true;
Expand Down

0 comments on commit 4846803

Please sign in to comment.