about summary refs log tree commit diff
path: root/pkgs/misc/themes/flat-plat/default.nix
blob: c9c0812d7a22fea6b01025eb198f268b5786b271 (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, gnome3, libxml2, gtk-engine-murrine }:

stdenv.mkDerivation rec {
  name = "flat-plat-gtk-theme-${version}";
  version = "2016-12-03";

  src = fetchFromGitHub {
    owner = "nana-4";
    repo = "Flat-Plat";
    rev = "49a5a51ec1a5835ff04ba2c62c9bccbd3f49bbe6";
    sha256 = "1w4b16cp2yv5rpijcqywlzrs3xjkvg8ppp2rfls1kvxq12rz4jkb";
  };

  nativeBuildInputs = [ gnome3.gnome_shell libxml2 ];

  buildInputs = [ gnome3.gnome_themes_standard gtk-engine-murrine ];

  dontBuild = true;

  installPhase = ''
    substituteInPlace install.sh --replace /usr ""
    destdir="$out" ./install.sh
    rm $out/share/themes/*/COPYING
  '';

  meta = with stdenv.lib; {
    description = "A Material Design-like theme for GTK+ based desktop environments";
    homepage = https://github.com/nana-4/Flat-Plat;
    license = licenses.gpl2;
    platforms = platforms.all;
    maintainers = [ maintainers.mounium ];
  };
}