mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2025-01-08 14:40:07 +03:00
deepin-desktop-base: init at 2018.7.23 (#48552)
This commit is contained in:
parent
6963bc3511
commit
5179813d98
45
pkgs/desktops/deepin/deepin-desktop-base/default.nix
Normal file
45
pkgs/desktops/deepin/deepin-desktop-base/default.nix
Normal file
@ -0,0 +1,45 @@
|
||||
{ stdenv, fetchFromGitHub, deepin-wallpapers }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "${pname}-${version}";
|
||||
pname = "deepin-desktop-base";
|
||||
version = "2018.7.23";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "linuxdeepin";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
sha256 = "1n1bjkvhgq138jcg3zkwg55r41056x91mh191mirlpvpic574ydc";
|
||||
};
|
||||
|
||||
buildInputs = [ deepin-wallpapers ];
|
||||
|
||||
postPatch = ''
|
||||
sed -i Makefile -e "s:/usr:$out:" -e "s:/etc:$out/etc:"
|
||||
'';
|
||||
|
||||
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
|
||||
ln -s ../lib/deepin/desktop-version $out/etc/deepin-version
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Base assets and definitions for Deepin Desktop Environment";
|
||||
homepage = https://github.com/linuxdeepin/deepin-desktop-base;
|
||||
license = licenses.gpl3;
|
||||
platforms = platforms.linux;
|
||||
maintainers = with maintainers; [ romildo ];
|
||||
};
|
||||
}
|
@ -7,6 +7,7 @@ let
|
||||
dde-api = callPackage ./dde-api { };
|
||||
dde-calendar = callPackage ./dde-calendar { };
|
||||
dde-qt-dbus-factory = callPackage ./dde-qt-dbus-factory { };
|
||||
deepin-desktop-base = callPackage ./deepin-desktop-base { };
|
||||
deepin-desktop-schemas = callPackage ./deepin-desktop-schemas { };
|
||||
deepin-gettext-tools = callPackage ./deepin-gettext-tools { };
|
||||
deepin-gtk-theme = callPackage ./deepin-gtk-theme { };
|
||||
|
Loading…
Reference in New Issue
Block a user