2017-08-08 22:43:54 +02:00
|
|
|
{ stdenv, fetchurl, glib, intltool, libfm, libX11, pango, pkgconfig
|
2017-08-12 08:45:29 +02:00
|
|
|
, wrapGAppsHook, gnome3, withGtk3 ? true, gtk2, gtk3 }:
|
2014-03-01 19:37:39 +01:00
|
|
|
|
2017-08-08 22:43:54 +02:00
|
|
|
let
|
|
|
|
libfm' = libfm.override { inherit withGtk3; };
|
|
|
|
gtk = if withGtk3 then gtk3 else gtk2;
|
|
|
|
inherit (stdenv.lib) optional;
|
|
|
|
in
|
2016-04-11 19:41:57 +02:00
|
|
|
stdenv.mkDerivation rec {
|
2018-04-24 19:20:14 +02:00
|
|
|
name = "pcmanfm-1.3.0";
|
2014-03-01 19:37:39 +01:00
|
|
|
src = fetchurl {
|
2016-04-11 19:41:57 +02:00
|
|
|
url = "mirror://sourceforge/pcmanfm/${name}.tar.xz";
|
2018-04-24 19:20:14 +02:00
|
|
|
sha256 = "1ywgfyklms5hqkapsbjps4kyx20ac0d1qk16ww74yagkyfdkwsas";
|
2014-03-01 19:37:39 +01:00
|
|
|
};
|
|
|
|
|
2017-08-12 08:45:29 +02:00
|
|
|
buildInputs = [ glib gtk libfm' libX11 pango gnome3.defaultIconTheme ];
|
|
|
|
nativeBuildInputs = [ pkgconfig wrapGAppsHook intltool ];
|
2017-08-08 22:43:54 +02:00
|
|
|
|
|
|
|
configureFlags = optional withGtk3 "--with-gtk=3";
|
2014-03-01 19:37:39 +01:00
|
|
|
|
2014-03-07 18:20:18 +01:00
|
|
|
meta = with stdenv.lib; {
|
2017-08-01 22:03:30 +02:00
|
|
|
homepage = http://blog.lxde.org/?cat=28/;
|
2014-03-07 18:20:18 +01:00
|
|
|
license = licenses.gpl2Plus;
|
2014-03-01 19:37:39 +01:00
|
|
|
description = "File manager with GTK+ interface";
|
2014-03-07 18:20:18 +01:00
|
|
|
maintainers = [ maintainers.ttuegel ];
|
|
|
|
platforms = platforms.linux;
|
2014-03-01 19:37:39 +01:00
|
|
|
};
|
|
|
|
}
|