about summary refs log tree commit diff
path: root/pkgs/data/icons/elementary-icon-theme/default.nix
blob: 2716658ee367d26502e3d61653d8d2fd3ed0ddfb (plain) (blame)
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
{ stdenv, fetchFromGitHub, meson, ninja, python3, gtk3 }:

stdenv.mkDerivation rec {
  name = "elementary-icon-theme-${version}";
  version = "5.0.1";

  src = fetchFromGitHub {
    owner = "elementary";
    repo = "icons";
    rev = version;
    sha256 = "1rw924b3ixfdff368dpv4vgsykwncmrvj9a6yfss0cf236xnvr9b";
  };

  nativeBuildInputs = [ meson ninja python3 gtk3 ];

  postPatch = ''
    chmod +x meson/symlink.py
    patchShebangs .
    sed -i volumeicon/meson.build -e "s,'/','$out',"
  '';

  postFixup = ''
    gtk-update-icon-cache $out/share/icons/elementary
  '';

  meta = with stdenv.lib; {
    description = "Icons from the Elementary Project";
    homepage = https://github.com/elementary/icons;
    license = licenses.gpl3;
    platforms = platforms.all;
    maintainers = with maintainers; [ simonvandel ];
  };
}