2018-10-30 22:17:45 +00:00
|
|
|
{ stdenv, fetchFromGitHub, deepin-wallpapers, deepin }:
|
2018-10-17 17:52:56 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "${pname}-${version}";
|
|
|
|
pname = "deepin-desktop-base";
|
2019-06-22 13:26:32 +01:00
|
|
|
version = "2019.06.19";
|
2018-10-17 17:52:56 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "linuxdeepin";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2019-06-22 13:26:32 +01:00
|
|
|
sha256 = "1r158x4z4qalv4q1ni3aln05krdzblvr7y6wyciwl7cr5ag1i1jy";
|
2018-10-17 17:52:56 +01:00
|
|
|
};
|
|
|
|
|
2018-12-14 20:56:22 +00:00
|
|
|
nativeBuildInputs = [ deepin.setupHook ];
|
|
|
|
|
2018-10-17 17:52:56 +01:00
|
|
|
buildInputs = [ deepin-wallpapers ];
|
|
|
|
|
2018-12-14 20:56:22 +00:00
|
|
|
# TODO: Fedora recommended dependencies:
|
|
|
|
# deepin-wallpapers
|
|
|
|
# plymouth-theme-deepin
|
|
|
|
|
2018-10-17 17:52:56 +01:00
|
|
|
postPatch = ''
|
2018-12-14 20:56:22 +00:00
|
|
|
searchHardCodedPaths
|
2018-10-17 17:52:56 +01:00
|
|
|
|
2018-12-14 20:56:22 +00:00
|
|
|
fixPath $out /etc Makefile
|
|
|
|
fixPath $out /usr Makefile
|
2018-10-17 17:52:56 +01:00
|
|
|
|
2018-12-14 20:56:22 +00:00
|
|
|
# Remove Deepin distro's lsb-release
|
2018-10-17 17:52:56 +01:00
|
|
|
# Don't override systemd timeouts
|
|
|
|
# Remove apt-specific templates
|
2018-12-14 20:56:22 +00:00
|
|
|
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
|
|
|
|
'';
|
2018-10-17 17:52:56 +01:00
|
|
|
|
2018-12-14 20:56:22 +00:00
|
|
|
postInstall = ''
|
2018-10-17 17:52:56 +01:00
|
|
|
# Make a symlink for deepin-version
|
|
|
|
ln -s ../lib/deepin/desktop-version $out/etc/deepin-version
|
|
|
|
'';
|
|
|
|
|
2018-10-30 22:17:45 +00:00
|
|
|
passthru.updateScript = deepin.updateScript { inherit name; };
|
|
|
|
|
2018-10-17 17:52:56 +01:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Base assets and definitions for Deepin Desktop Environment";
|
2018-12-14 20:56:22 +00:00
|
|
|
# TODO: revise
|
|
|
|
longDescription = ''
|
|
|
|
This package provides some components for Deepin desktop environment.
|
|
|
|
- deepin logo
|
|
|
|
- deepin desktop version
|
|
|
|
- login screen background image
|
|
|
|
- language information
|
|
|
|
'';
|
2018-10-17 17:52:56 +01:00
|
|
|
homepage = https://github.com/linuxdeepin/deepin-desktop-base;
|
|
|
|
license = licenses.gpl3;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ romildo ];
|
|
|
|
};
|
|
|
|
}
|