2018-11-12 20:54:05 +00:00
|
|
|
{ stdenv, fetchFromGitHub, python3, gnome3, glib, deepin-gtk-theme,
|
|
|
|
deepin-icon-theme, deepin-sound-theme, deepin-wallpapers, deepin }:
|
2018-10-13 22:11:55 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "${pname}-${version}";
|
|
|
|
pname = "deepin-desktop-schemas";
|
2018-11-12 20:54:05 +00:00
|
|
|
version = "3.13.0";
|
2018-10-13 22:11:55 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "linuxdeepin";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2018-11-12 20:54:05 +00:00
|
|
|
sha256 = "0bamjcpmsl8xhw3ksgl11wv5xwcdhrkl1namikfzc4an03sk1rdq";
|
2018-10-13 22:11:55 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
2018-11-12 20:54:05 +00:00
|
|
|
python3
|
|
|
|
glib.dev
|
|
|
|
deepin.setupHook
|
2018-10-13 22:11:55 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
gnome3.dconf
|
|
|
|
deepin-gtk-theme
|
|
|
|
deepin-icon-theme
|
|
|
|
deepin-sound-theme
|
|
|
|
deepin-wallpapers
|
|
|
|
];
|
|
|
|
|
|
|
|
postPatch = ''
|
2018-11-12 20:54:05 +00:00
|
|
|
searchHardCodedPaths
|
|
|
|
|
2018-10-13 22:11:55 +01:00
|
|
|
# fix default background url
|
2018-11-12 20:54:05 +00:00
|
|
|
sed -i -e 's,/usr/share/backgrounds/default_background.jpg,/usr/share/backgrounds/deepin/desktop.jpg,' \
|
|
|
|
overrides/common/com.deepin.wrap.gnome.desktop.override
|
|
|
|
|
|
|
|
fixPath ${deepin-wallpapers} /usr/share/backgrounds \
|
2018-10-13 22:11:55 +01:00
|
|
|
overrides/common/com.deepin.wrap.gnome.desktop.override
|
2018-11-12 20:54:05 +00:00
|
|
|
|
|
|
|
fixPath ${deepin-wallpapers} /usr/share/wallpapers/deepin \
|
|
|
|
schemas/com.deepin.dde.appearance.gschema.xml
|
|
|
|
|
|
|
|
# still hardcoded paths:
|
|
|
|
# /etc/gnome-settings-daemon/xrandr/monitors.xml ? gnome3.gnome-settings-daemon
|
|
|
|
# /usr/share/backgrounds/gnome/adwaita-lock.jpg ? gnome3.gnome-backgrounds
|
|
|
|
# /usr/share/backgrounds/gnome/adwaita-timed.xml gnome3.gnome-backgrounds
|
|
|
|
# /usr/share/desktop-directories
|
2018-10-13 22:11:55 +01:00
|
|
|
'';
|
|
|
|
|
2018-11-12 20:54:05 +00:00
|
|
|
makeFlags = [ "PREFIX=${placeholder ''out''}" ];
|
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
checkTarget = "test";
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
glib-compile-schemas --strict $out/share/glib-2.0/schemas
|
|
|
|
searchHardCodedPaths $out
|
|
|
|
'';
|
2018-10-13 22:11:55 +01:00
|
|
|
|
2018-10-30 22:17:45 +00:00
|
|
|
passthru.updateScript = deepin.updateScript { inherit name; };
|
|
|
|
|
2018-10-13 22:11:55 +01:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "GSettings deepin desktop-wide schemas";
|
|
|
|
homepage = https://github.com/linuxdeepin/deepin-desktop-schemas;
|
|
|
|
license = licenses.gpl3;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ romildo ];
|
|
|
|
};
|
|
|
|
}
|