forgejo-lts: 7.0.10 -> 7.0.11
[NixPkgs.git] / pkgs / desktops / deepin / artwork / deepin-icon-theme / default.nix
blob2f15e0f1f195fc143428b63ce3842e0c7f2902c9
2   stdenvNoCC,
3   lib,
4   fetchFromGitHub,
5   gtk3,
6   xcursorgen,
7   papirus-icon-theme,
8 }:
10 stdenvNoCC.mkDerivation rec {
11   pname = "deepin-icon-theme";
12   version = "2024.07.31";
14   src = fetchFromGitHub {
15     owner = "linuxdeepin";
16     repo = pname;
17     rev = version;
18     hash = "sha256-Vt2rYZthGelXVUp8/L57ZlDsVEjjZhCv+kSGeU6nC2s=";
19   };
21   makeFlags = [ "PREFIX=${placeholder "out"}" ];
23   nativeBuildInputs = [
24     gtk3
25     xcursorgen
26   ];
28   propagatedBuildInputs = [ papirus-icon-theme ];
30   dontDropIconThemeCache = true;
32   preFixup = ''
33     for theme in $out/share/icons/*; do
34       gtk-update-icon-cache $theme
35     done
36   '';
38   meta = with lib; {
39     description = "Provides the base icon themes on deepin";
40     homepage = "https://github.com/linuxdeepin/deepin-icon-theme";
41     license = licenses.gpl3Plus;
42     platforms = platforms.linux;
43     maintainers = teams.deepin.members;
44   };