depot/third_party/nixpkgs/pkgs/desktops/deepin/misc/deepin-desktop-base/default.nix
Default email 504525a148 Project import generated by Copybara.
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
2024-01-02 12:29:13 +01:00

36 lines
1.1 KiB
Nix

{ stdenvNoCC
, lib
, fetchFromGitHub
}:
stdenvNoCC.mkDerivation rec {
pname = "deepin-desktop-base";
version = "2023.09.05";
src = fetchFromGitHub {
owner = "linuxdeepin";
repo = pname;
rev = version;
hash = "sha256-Gqp56TbkuTOI3aT7UmRuYBjUwRiOoIUHiRf0DaY0yew=";
};
makeFlags = [ "DESTDIR=${placeholder "out"}" ];
# distribution_logo_transparent.svg come form nixos-artwork(https://github.com/NixOS/nixos-artwork)/logo/nixos-white.svg under CC-BY license, used for dde-lock
postInstall = ''
rm -r $out/etc
rm -r $out/usr/share/python-apt
rm -r $out/usr/share/plymouth
rm -r $out/usr/share/distro-info
mv $out/usr/* $out/
rm -r $out/usr
install -D ${./distribution_logo_transparent.svg} $out/share/pixmaps/distribution_logo_transparent.svg
'';
meta = with lib; {
description = "Base assets and definitions for Deepin Desktop Environment";
homepage = "https://github.com/linuxdeepin/deepin-desktop-base";
license = with licenses; [ gpl3Plus cc-by-40 ];
platforms = platforms.linux;
maintainers = teams.deepin.members;
};
}