18 libfm' = libfm.override { inherit withGtk3; };
19 gtk = if withGtk3 then gtk3 else gtk2;
20 inherit (lib) optional;
22 stdenv.mkDerivation rec {
27 url = "mirror://sourceforge/pcmanfm/pcmanfm-${version}.tar.xz";
28 sha256 = "sha256-FMt7JHSTxMzmX7tZAmEeOtAKeocPvB5QrcUEKMUUDPc=";
31 buildInputs = [ glib gtk libfm' libX11 pango adwaita-icon-theme ];
32 nativeBuildInputs = [ pkg-config wrapGAppsHook3 intltool ];
34 configureFlags = optional withGtk3 "--with-gtk=3";
37 homepage = "https://blog.lxde.org/category/pcmanfm/";
38 license = licenses.gpl2Plus;
39 description = "File manager with GTK interface";
40 maintainers = [ maintainers.ttuegel ];
41 platforms = platforms.linux;
42 mainProgram = "pcmanfm";