mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-06 04:53:27 +00:00
51 lines
1.5 KiB
Nix
51 lines
1.5 KiB
Nix
{
|
|
stdenvNoCC,
|
|
lib,
|
|
fetchFromGitHub,
|
|
nixos-icons,
|
|
}:
|
|
stdenvNoCC.mkDerivation rec {
|
|
pname = "deepin-desktop-base";
|
|
version = "2024.07.24";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "linuxdeepin";
|
|
repo = pname;
|
|
rev = version;
|
|
hash = "sha256-JOC8nQ/YgUpY93FcniO2uypAfsL/SNU+KfTrthoZfQo=";
|
|
};
|
|
|
|
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
|
|
cat > $out/share/deepin/distribution.info <<EOF
|
|
[Distribution]
|
|
Name=NixOS
|
|
WebsiteName=www.nixos.org
|
|
Website=https://www.nixos.org
|
|
Logo=${nixos-icons}/share/icons/hicolor/96x96/apps/nix-snowflake.png
|
|
LogoLight=${nixos-icons}/share/icons/hicolor/32x32/apps/nix-snowflake.png
|
|
LogoTransparent=$out/share/pixmaps/distribution_logo_transparent.svg
|
|
EOF
|
|
'';
|
|
|
|
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;
|
|
};
|
|
}
|