2021-01-17 03:09:27 +01:00
|
|
|
{ lib, stdenv, fetchurl, glib, intltool, libfm, libX11, pango, pkg-config
|
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;
|
2021-01-15 06:42:41 +01:00
|
|
|
inherit (lib) optional;
|
2017-08-08 22:43:54 +02:00
|
|
|
in
|
2016-04-11 19:41:57 +02:00
|
|
|
stdenv.mkDerivation rec {
|
2018-12-25 10:37:50 +01:00
|
|
|
name = "pcmanfm-1.3.1";
|
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-12-25 10:37:50 +01:00
|
|
|
sha256 = "0mb8hg76x1z0szdyl0w7jpz0bdblc6a29is1vvnh79z37qxh8138";
|
2014-03-01 19:37:39 +01:00
|
|
|
};
|
|
|
|
|
2019-02-13 22:47:50 +01:00
|
|
|
buildInputs = [ glib gtk libfm' libX11 pango gnome3.adwaita-icon-theme ];
|
2021-01-17 03:09:27 +01:00
|
|
|
nativeBuildInputs = [ pkg-config wrapGAppsHook intltool ];
|
2017-08-08 22:43:54 +02:00
|
|
|
|
|
|
|
configureFlags = optional withGtk3 "--with-gtk=3";
|
2014-03-01 19:37:39 +01:00
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://blog.lxde.org/category/pcmanfm/";
|
2014-03-07 18:20:18 +01:00
|
|
|
license = licenses.gpl2Plus;
|
2019-09-04 00:49:40 +02: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
|
|
|
};
|
|
|
|
}
|