nixpkgs-suyu/pkgs/desktops/deepin/deepin-wm/default.nix

61 lines
1.4 KiB
Nix
Raw Normal View History

2018-10-15 15:58:42 +02:00
{ stdenv, fetchFromGitHub, pkgconfig, intltool, libtool, vala, gnome3,
bamf, clutter-gtk, granite, libcanberra-gtk3, libwnck3,
deepin-mutter, deepin-wallpapers, deepin-desktop-schemas,
2018-10-30 23:17:45 +01:00
hicolor-icon-theme, deepin }:
2018-10-15 15:58:42 +02:00
stdenv.mkDerivation rec {
name = "${pname}-${version}";
pname = "deepin-wm";
version = "1.9.32";
src = fetchFromGitHub {
owner = "linuxdeepin";
repo = pname;
rev = version;
sha256 = "02vwbkfpxcwv01vqa70pg7dm0lhm1lwhdqhk057r147a9cjb3ssc";
};
nativeBuildInputs = [
pkgconfig
intltool
libtool
gnome3.gnome-common
vala
];
buildInputs = [
gnome3.gnome-desktop
gnome3.libgee
bamf
clutter-gtk
granite
libcanberra-gtk3
libwnck3
deepin-mutter
deepin-wallpapers
deepin-desktop-schemas
hicolor-icon-theme
];
postPatch = ''
sed -i src/Background/BackgroundSource.vala \
-e 's;/usr/share/backgrounds/default_background.jpg;${deepin-wallpapers}/share/backgrounds/deepin/desktop.jpg;'
'';
preConfigure = ''
./autogen.sh
'';
enableParallelBuilding = true;
2018-10-30 23:17:45 +01:00
passthru.updateScript = deepin.updateScript { inherit name; };
2018-10-15 15:58:42 +02: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 ];
};
}