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 " ;
2024-01-02 11:29:13 +00:00
version = " 2 0 2 3 . 0 9 . 0 5 " ;
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 ;
2024-01-02 11:29:13 +00:00
hash = " s h a 2 5 6 - G q p 5 6 T b k u T O I 3 a T 7 U m R u Y B j U w R i O o I U H i R f 0 D a Y 0 y e w = " ;
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 ;
} ;
}