deepin.deepin-desktop-base: 2018.10.29 -> 2019.03.29

This commit is contained in:
José Romildo Malaquias 2018-12-14 18:56:22 -02:00
parent 4846803904
commit 8b09ef4390

View File

@ -3,34 +3,40 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "${pname}-${version}"; name = "${pname}-${version}";
pname = "deepin-desktop-base"; pname = "deepin-desktop-base";
version = "2018.10.29"; version = "2019.03.29";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "linuxdeepin"; owner = "linuxdeepin";
repo = pname; repo = pname;
rev = version; rev = version;
sha256 = "0l2zb7rpag2q36lqsgvirhjgmj7w243nsi1rywkypf2xm7g2v235"; sha256 = "1d016h95nsn5yay9f4c13hixfxj0q01hpxwj2x84i6qpx63dxdwq";
}; };
nativeBuildInputs = [ deepin.setupHook ];
buildInputs = [ deepin-wallpapers ]; buildInputs = [ deepin-wallpapers ];
# TODO: Fedora recommended dependencies:
# deepin-wallpapers
# plymouth-theme-deepin
postPatch = '' postPatch = ''
sed -i Makefile -e "s:/usr:$out:" -e "s:/etc:$out/etc:" searchHardCodedPaths
fixPath $out /etc Makefile
fixPath $out /usr Makefile
# Remove Deepin distro's lsb-release
# Don't override systemd timeouts
# Remove apt-specific templates
echo ----------------------------------------------------------------
echo grep --color=always -E 'lsb-release|systemd|python-apt|backgrounds' Makefile
grep --color=always -E 'lsb-release|systemd|python-apt|backgrounds' Makefile
echo ----------------------------------------------------------------
sed -i -E '/lsb-release|systemd|python-apt|backgrounds/d' Makefile
''; '';
postInstall = '' postInstall = ''
# Remove Deepin distro's lsb-release
rm $out/etc/lsb-release
# Don't override systemd timeouts
rm -r $out/etc/systemd
# Remove apt-specific templates
rm -r $out/share/python-apt
# Remove empty backgrounds directory
rm -r $out/share/backgrounds
# Make a symlink for deepin-version # Make a symlink for deepin-version
ln -s ../lib/deepin/desktop-version $out/etc/deepin-version ln -s ../lib/deepin/desktop-version $out/etc/deepin-version
''; '';
@ -39,6 +45,14 @@ stdenv.mkDerivation rec {
meta = with stdenv.lib; { meta = with stdenv.lib; {
description = "Base assets and definitions for Deepin Desktop Environment"; description = "Base assets and definitions for Deepin Desktop Environment";
# TODO: revise
longDescription = ''
This package provides some components for Deepin desktop environment.
- deepin logo
- deepin desktop version
- login screen background image
- language information
'';
homepage = https://github.com/linuxdeepin/deepin-desktop-base; homepage = https://github.com/linuxdeepin/deepin-desktop-base;
license = licenses.gpl3; license = licenses.gpl3;
platforms = platforms.linux; platforms = platforms.linux;