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

77 lines
1.9 KiB
Nix
Raw Normal View History

2018-10-15 06:58:42 -07:00
{ stdenv, fetchFromGitHub, pkgconfig, intltool, libtool, vala, gnome3,
dbus, bamf, clutter-gtk, pantheon, libgee, libcanberra-gtk3,
libwnck3, deepin-menu, deepin-mutter, deepin-wallpapers,
2018-12-26 12:17:47 -08:00
deepin-desktop-schemas, wrapGAppsHook, deepin }:
2018-10-15 06:58:42 -07:00
stdenv.mkDerivation rec {
name = "${pname}-${version}";
pname = "deepin-wm";
2019-05-04 04:42:00 -07:00
version = "1.9.38";
2018-10-15 06:58:42 -07:00
src = fetchFromGitHub {
owner = "linuxdeepin";
repo = pname;
rev = version;
2019-05-04 04:42:00 -07:00
sha256 = "1qhdnv4x78f0gkr94q0j8x029fk9ji4m9jdipgrdm83pnahib80g";
2018-10-15 06:58:42 -07:00
};
nativeBuildInputs = [
pkgconfig
intltool
libtool
vala
2018-12-26 12:17:47 -08:00
gnome3.gnome-common
wrapGAppsHook
deepin.setupHook
2018-10-15 06:58:42 -07:00
];
buildInputs = [
bamf
clutter-gtk
dbus
2018-12-26 12:17:47 -08:00
deepin-desktop-schemas
deepin-menu
2018-10-15 06:58:42 -07:00
deepin-mutter
deepin-wallpapers
2018-12-26 12:17:47 -08:00
gnome3.gnome-desktop
libcanberra-gtk3
libgee
libwnck3
pantheon.granite
2018-10-15 06:58:42 -07:00
];
postPatch = ''
searchHardCodedPaths # debugging
2018-12-26 12:17:47 -08:00
# fix background path
fixPath ${deepin-wallpapers} /usr/share/backgrounds src/Background/BackgroundSource.vala
2018-12-26 12:17:47 -08:00
sed -i 's|default_background.jpg|deepin/desktop.jpg|' src/Background/BackgroundSource.vala
# fix executable paths in desktop files
sed -i -e "s,Exec=dbus-send,Exec=${dbus}/bin/dbus-send," data/gala-multitaskingview.desktop.in
sed -i -e "s,Exec=deepin-wm,Exec=$out/bin/deepin-wm," data/gala.desktop
2018-10-15 06:58:42 -07:00
'';
2018-12-26 12:17:47 -08:00
NIX_CFLAGS_COMPILE = "-DWNCK_I_KNOW_THIS_IS_UNSTABLE";
2018-10-15 06:58:42 -07:00
preConfigure = ''
2018-12-26 12:17:47 -08:00
NOCONFIGURE=1 ./autogen.sh
2018-10-15 06:58:42 -07:00
'';
postFixup = ''
searchHardCodedPaths $out # debugging
'';
2018-10-15 06:58:42 -07:00
enableParallelBuilding = true;
2018-10-30 15:17:45 -07:00
passthru.updateScript = deepin.updateScript { inherit name; };
2018-10-15 06:58:42 -07: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 ];
};
}