summary refs log tree commit diff
path: root/pkgs/data/icons/papirus-maia-icon-theme/default.nix
blob: e15e64c2101f3235da234439a3f9fd8c1fe8197b (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
34
35
36
{ stdenv, fetchFromGitHub, cmake, gtk3 }:

stdenv.mkDerivation rec {
  pname = "papirus-maia-icon-theme";
  version = "2019-07-26";

  src = fetchFromGitHub {
    owner = "Ste74";
    repo = pname;
    rev = "90d47c817cc0edeed8b5a90335e669948ff4a116";
    sha256 = "0d6lvdg5nw5wfaq8lxszcws174vg12ywkrqzn6czimhmhp48jf5p";
  };

  nativeBuildInputs = [
    cmake
    gtk3
  ];

  postPatch = ''
    substituteInPlace CMakeLists.txt --replace /usr "$out"
  '';

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

  meta = with stdenv.lib; {
    description = "Manjaro variation of Papirus icon theme";
    homepage = https://github.com/Ste74/papirus-maia-icon-theme;
    license = licenses.lgpl3;
    platforms = platforms.linux;
    maintainers = with maintainers; [ romildo ];
  };
}