diff --git a/pkgs/desktops/lxde/core/lxappearance/default.nix b/pkgs/desktops/lxde/core/lxappearance/default.nix index ea64b75214f6..b838c19afc8e 100644 --- a/pkgs/desktops/lxde/core/lxappearance/default.nix +++ b/pkgs/desktops/lxde/core/lxappearance/default.nix @@ -1,26 +1,42 @@ -{ stdenv, fetchurl, intltool, pkgconfig, libX11, gtk2, withGtk3 ? false, gtk3 }: +{ stdenv +, fetchurl +, intltool +, pkg-config +, libX11 +, gtk2 +, gtk3 +, withGtk3 ? true +}: stdenv.mkDerivation rec { name = "lxappearance-0.6.3"; - src = fetchurl{ + src = fetchurl { url = "mirror://sourceforge/project/lxde/LXAppearance/${name}.tar.xz"; 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"; - meta = { - description = "A lightweight program for configuring the theme and fonts of gtk applications"; + meta = with stdenv.lib; { + description = "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; + license = licenses.gpl2; + platforms = platforms.linux; + maintainers = with maintainers; [ hinton romildo ]; }; } diff --git a/pkgs/top-level/aliases.nix b/pkgs/top-level/aliases.nix index 30d9ce5bcfd8..1004a444469e 100644 --- a/pkgs/top-level/aliases.nix +++ b/pkgs/top-level/aliases.nix @@ -276,6 +276,7 @@ mapAliases ({ lua5_1_sockets = lua51Packages.luasocket; # added 2017-05-02 lua5_expat = luaPackages.luaexpat; # added 2017-05-02 lua5_sec = luaPackages.luasec; # added 2017-05-02 + lxappearance-gtk3 = throw "lxappearance-gtk3 has been removed. Use lxappearance instead, which now defaults to Gtk3"; # added 2020-06-03 m3d-linux = m33-linux; # added 2016-08-13 man_db = man-db; # added 2016-05 manpages = man-pages; # added 2015-12-06 diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 2f4fe9578a01..e7fc5edf06b3 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -9507,12 +9507,11 @@ in nodejs = nodejs-13_x; }; - lxappearance = callPackage ../desktops/lxde/core/lxappearance { - gtk2 = gtk2-x11; - }; + lxappearance = callPackage ../desktops/lxde/core/lxappearance { }; - lxappearance-gtk3 = lxappearance.override { - withGtk3 = true; + lxappearance-gtk2 = callPackage ../desktops/lxde/core/lxappearance { + gtk2 = gtk2-x11; + withGtk3 = false; }; lxmenu-data = callPackage ../desktops/lxde/core/lxmenu-data.nix { };