Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 48 lines 970 B view raw
1{ 2 lib, 3 stdenv, 4 fetchurl, 5 intltool, 6 pkg-config, 7 libX11, 8 gtk2, 9 gtk3, 10 wrapGAppsHook3, 11 withGtk3 ? true, 12}: 13 14stdenv.mkDerivation rec { 15 pname = "lxappearance"; 16 version = "0.6.3"; 17 18 src = fetchurl { 19 url = "mirror://sourceforge/project/lxde/LXAppearance/${pname}-${version}.tar.xz"; 20 sha256 = "0f4bjaamfxxdr9civvy55pa6vv9dx1hjs522gjbbgx7yp1cdh8kj"; 21 }; 22 23 nativeBuildInputs = [ 24 pkg-config 25 intltool 26 wrapGAppsHook3 27 ]; 28 29 buildInputs = [ 30 libX11 31 (if withGtk3 then gtk3 else gtk2) 32 ]; 33 34 patches = [ 35 ./lxappearance-0.6.3-xdg.system.data.dirs.patch 36 ]; 37 38 configureFlags = lib.optional withGtk3 "--enable-gtk3"; 39 40 meta = with lib; { 41 description = "Lightweight program for configuring the theme and fonts of gtk applications"; 42 mainProgram = "lxappearance"; 43 homepage = "https://lxde.org/"; 44 license = licenses.gpl2Plus; 45 platforms = platforms.linux; 46 maintainers = with maintainers; [ romildo ]; 47 }; 48}