nixpkgs/pkgs/desktops/lxde/core/lxappearance/default.nix

46 lines
928 B
Nix
Raw Normal View History

{ lib, stdenv
, fetchurl
, intltool
, pkg-config
, libX11
, gtk2
, gtk3
2021-02-04 11:15:08 +00:00
, wrapGAppsHook
, withGtk3 ? true
}:
stdenv.mkDerivation rec {
pname = "lxappearance";
version = "0.6.3";
2016-09-20 01:25:05 +00:00
src = fetchurl {
url = "mirror://sourceforge/project/lxde/LXAppearance/${pname}-${version}.tar.xz";
2017-02-16 13:31:42 +00:00
sha256 = "0f4bjaamfxxdr9civvy55pa6vv9dx1hjs522gjbbgx7yp1cdh8kj";
};
2016-09-20 01:25:05 +00:00
nativeBuildInputs = [
pkg-config
intltool
2021-02-04 11:15:08 +00:00
wrapGAppsHook
];
2016-09-20 01:25:05 +00:00
buildInputs = [
libX11
(if withGtk3 then gtk3 else gtk2)
];
patches = [
./lxappearance-0.6.3-xdg.system.data.dirs.patch
];
2021-01-15 13:21:58 +00:00
configureFlags = lib.optional withGtk3 "--enable-gtk3";
2016-09-20 01:25:05 +00:00
meta = with lib; {
description = "Lightweight program for configuring the theme and fonts of gtk applications";
homepage = "https://lxde.org/";
license = licenses.gpl2Plus;
platforms = platforms.linux;
maintainers = with maintainers; [ hinton romildo ];
};
}