about summary refs log tree commit diff
path: root/nixpkgs/pkgs/desktops/lxde/core/lxappearance/default.nix
blob: ea64b75214f61b9e56a92595f41aa889ccf0dffe (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
{ stdenv, fetchurl, intltool, pkgconfig, libX11, gtk2, withGtk3 ? false, gtk3 }:

stdenv.mkDerivation rec {
  name = "lxappearance-0.6.3";

  src = fetchurl{
    url = "mirror://sourceforge/project/lxde/LXAppearance/${name}.tar.xz";
    sha256 = "0f4bjaamfxxdr9civvy55pa6vv9dx1hjs522gjbbgx7yp1cdh8kj";
  };

  nativeBuildInputs = [ pkgconfig intltool ];

  buildInputs = [ libX11 (if withGtk3 then gtk3 else gtk2) ];

  patches = [ ./lxappearance-0.6.3-xdg.system.data.dirs.patch ];

  configureFlags = stdenv.lib.optional withGtk3 "--enable-gtk3";

  meta = {
    description = "A lightweight program for configuring the theme and fonts of gtk applications";
    homepage = "https://lxde.org/";
    maintainers = [ stdenv.lib.maintainers.hinton ];
    platforms = stdenv.lib.platforms.linux;
    license = stdenv.lib.licenses.gpl2;
  };
}