11 , withGtk3 ? false, gtk2, gtk3
15 gtk = if withGtk3 then gtk3 else gtk2;
16 inherit (lib) optional optionalString;
18 stdenv.mkDerivation rec {
25 url = "mirror://sourceforge/pcmanfm/libfm-${version}.tar.xz";
26 sha256 = "sha256-pQQmMDBM+OXYz/nVZca9VG8ii0jJYBU+02ajTofK0eU=";
29 nativeBuildInputs = [ vala pkg-config intltool ];
30 buildInputs = [ glib gtk pango ]
31 ++ optional (!extraOnly) menu-cache;
33 configureFlags = [ "--sysconfdir=/etc" ]
34 ++ optional extraOnly "--with-extra-only"
35 ++ optional withGtk3 "--with-gtk=3";
37 installFlags = [ "sysconfdir=${placeholder "out"}/etc" ];
39 # libfm-extra is pulled in by menu-cache and thus leads to a collision for libfm
40 postInstall = optionalString (!extraOnly) ''
41 rm $out/lib/libfm-extra.so $out/lib/libfm-extra.so.* $out/lib/libfm-extra.la $out/lib/pkgconfig/libfm-extra.pc
44 enableParallelBuilding = true;
47 broken = stdenv.isDarwin;
48 homepage = "https://blog.lxde.org/category/pcmanfm/";
49 license = licenses.lgpl21Plus;
50 description = "A glib-based library for file management";
51 maintainers = [ maintainers.ttuegel ];
52 platforms = platforms.linux ++ platforms.darwin;