lxappearance: format with nixpkgs-fmt
Also: - use pkg-config instead of the alias pkgconfig - add romildo as maintainer
This commit is contained in:
parent
6e3b3bf117
commit
9644b56c74
|
@ -1,26 +1,42 @@
|
||||||
{ stdenv, fetchurl, intltool, pkgconfig, libX11, gtk2, withGtk3 ? true, gtk3 }:
|
{ stdenv
|
||||||
|
, fetchurl
|
||||||
|
, intltool
|
||||||
|
, pkg-config
|
||||||
|
, libX11
|
||||||
|
, gtk2
|
||||||
|
, gtk3
|
||||||
|
, withGtk3 ? true
|
||||||
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "lxappearance-0.6.3";
|
name = "lxappearance-0.6.3";
|
||||||
|
|
||||||
src = fetchurl{
|
src = fetchurl {
|
||||||
url = "mirror://sourceforge/project/lxde/LXAppearance/${name}.tar.xz";
|
url = "mirror://sourceforge/project/lxde/LXAppearance/${name}.tar.xz";
|
||||||
sha256 = "0f4bjaamfxxdr9civvy55pa6vv9dx1hjs522gjbbgx7yp1cdh8kj";
|
sha256 = "0f4bjaamfxxdr9civvy55pa6vv9dx1hjs522gjbbgx7yp1cdh8kj";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ pkgconfig intltool ];
|
nativeBuildInputs = [
|
||||||
|
pkg-config
|
||||||
|
intltool
|
||||||
|
];
|
||||||
|
|
||||||
buildInputs = [ libX11 (if withGtk3 then gtk3 else gtk2) ];
|
buildInputs = [
|
||||||
|
libX11
|
||||||
|
(if withGtk3 then gtk3 else gtk2)
|
||||||
|
];
|
||||||
|
|
||||||
patches = [ ./lxappearance-0.6.3-xdg.system.data.dirs.patch ];
|
patches = [
|
||||||
|
./lxappearance-0.6.3-xdg.system.data.dirs.patch
|
||||||
|
];
|
||||||
|
|
||||||
configureFlags = stdenv.lib.optional withGtk3 "--enable-gtk3";
|
configureFlags = stdenv.lib.optional withGtk3 "--enable-gtk3";
|
||||||
|
|
||||||
meta = {
|
meta = with stdenv.lib; {
|
||||||
description = "A lightweight program for configuring the theme and fonts of gtk applications";
|
description = "Lightweight program for configuring the theme and fonts of gtk applications";
|
||||||
homepage = "https://lxde.org/";
|
homepage = "https://lxde.org/";
|
||||||
maintainers = [ stdenv.lib.maintainers.hinton ];
|
license = licenses.gpl2;
|
||||||
platforms = stdenv.lib.platforms.linux;
|
platforms = platforms.linux;
|
||||||
license = stdenv.lib.licenses.gpl2;
|
maintainers = with maintainers; [ hinton romildo ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue