nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at devShellTools-shell 47 lines 1.1 kB view raw
1{ 2 stdenvNoCC, 3 lib, 4 fetchFromGitHub, 5 gtk3, 6 xcursorgen, 7 papirus-icon-theme, 8}: 9 10stdenvNoCC.mkDerivation rec { 11 pname = "deepin-icon-theme"; 12 version = "2024.07.31"; 13 14 src = fetchFromGitHub { 15 owner = "linuxdeepin"; 16 repo = pname; 17 rev = version; 18 hash = "sha256-Vt2rYZthGelXVUp8/L57ZlDsVEjjZhCv+kSGeU6nC2s="; 19 }; 20 21 makeFlags = [ "PREFIX=${placeholder "out"}" ]; 22 23 nativeBuildInputs = [ 24 gtk3 25 xcursorgen 26 ]; 27 28 propagatedBuildInputs = [ papirus-icon-theme ]; 29 30 dontDropIconThemeCache = true; 31 32 # Remove broken symbolic link(https://github.com/linuxdeepin/developer-center/issues/11245) 33 preFixup = '' 34 rm $out/share/icons/bloom/actions/24/{draw-triangle1.svg,draw-triangle2.svg,draw-triangle3.svg,draw-triangle4.svg} 35 for theme in $out/share/icons/*; do 36 gtk-update-icon-cache $theme 37 done 38 ''; 39 40 meta = with lib; { 41 description = "Provides the base icon themes on deepin"; 42 homepage = "https://github.com/linuxdeepin/deepin-icon-theme"; 43 license = licenses.gpl3Plus; 44 platforms = platforms.linux; 45 teams = [ teams.deepin ]; 46 }; 47}