aboutsummaryrefslogtreecommitdiff
path: root/pkgs/theme/delft-icon-theme.nix
blob: 08ed7731249f719262d753d5b28043822726d2e2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
{ lib, stdenv, stdenvNoCC, fetchFromGitHub, gtk3, gnome-icon-theme, hicolor-icon-theme }:

stdenv.mkDerivation rec {
  pname = "delft-icon-theme";
  version = "1.15";

  src = fetchFromGitHub {
    owner = "madmaxms";
    repo = "iconpack-delft";
    rev = "v${version}";
    sha256 = "fluSh2TR1CdIW54wkUp1QRB0m9akFKnSn4d+0z6gkLA=";
  };

  nativeBuildInputs = [ gtk3 ];

  propagatedBuildInputs = [ gnome-icon-theme hicolor-icon-theme ];

  dontDropIconThemeCache = true;

  installPhase = ''
    mkdir -p $out/share/icons
    cp -a Delft* $out/share/icons/

    for theme in $out/share/icons/*; do
      gtk-update-icon-cache $theme
    done
  '';

  meta = with lib; {
    description = "Delft icon theme";
    homepage = "https://github.com/madmaxms/iconpack-delft";
    license = licenses.gpl3Only;
    platforms = platforms.linux;
  };
}