2023-02-09 11:40:11 +00:00
{ stdenvNoCC
, lib
, fetchFromGitHub
} :
stdenvNoCC . mkDerivation rec {
pname = " d e e p i n - d e s k t o p - b a s e " ;
2023-03-24 00:07:29 +00:00
version = " 2 0 2 2 . 1 1 . 1 5 - d e e p i n " ;
2023-02-09 11:40:11 +00:00
src = fetchFromGitHub {
owner = " l i n u x d e e p i n " ;
repo = pname ;
rev = version ;
2023-03-24 00:07:29 +00:00
sha256 = " s h a 2 5 6 - G T g I H W z + x 1 P l 3 F 4 z K A 9 V 8 o 2 o q 6 c 5 3 O K 9 4 q 9 5 W o M G + Q o = " ;
2023-02-09 11:40:11 +00:00
} ;
makeFlags = [ " D E S T D I R = ${ placeholder " o u t " } " ] ;
# 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 /* $ o u t /
rm - r $ out/usr
install - D $ { ./distribution_logo_transparent.svg } $ out/share/pixmaps/distribution_logo_transparent.svg
'' ;
meta = with lib ; {
description = " B a s e a s s e t s a n d d e f i n i t i o n s f o r D e e p i n D e s k t o p E n v i r o n m e n t " ;
homepage = " h t t p s : / / g i t h u b . c o m / l i n u x d e e p i n / d e e p i n - d e s k t o p - b a s e " ;
2023-03-24 00:07:29 +00:00
license = with licenses ; [ gpl3Plus cc-by-40 ] ;
2023-02-09 11:40:11 +00:00
platforms = platforms . linux ;
maintainers = teams . deepin . members ;
} ;
}