2021-11-07 20:29:51 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchurl
|
|
|
|
, glib
|
|
|
|
, intltool
|
|
|
|
, libfm
|
|
|
|
, libX11
|
|
|
|
, pango
|
|
|
|
, pkg-config
|
|
|
|
, wrapGAppsHook
|
|
|
|
, gnome
|
|
|
|
, withGtk3 ? true
|
|
|
|
, gtk2
|
|
|
|
, gtk3
|
|
|
|
}:
|
2014-03-01 18:37:39 +00:00
|
|
|
|
2017-08-08 20:43:54 +00:00
|
|
|
let
|
|
|
|
libfm' = libfm.override { inherit withGtk3; };
|
|
|
|
gtk = if withGtk3 then gtk3 else gtk2;
|
2021-01-15 05:42:41 +00:00
|
|
|
inherit (lib) optional;
|
2017-08-08 20:43:54 +00:00
|
|
|
in
|
2016-04-11 17:41:57 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2021-11-07 20:29:51 +00:00
|
|
|
pname = "pcmanfm";
|
|
|
|
version = "1.3.2";
|
|
|
|
|
2014-03-01 18:37:39 +00:00
|
|
|
src = fetchurl {
|
2021-11-07 20:29:51 +00:00
|
|
|
url = "mirror://sourceforge/pcmanfm/pcmanfm-${version}.tar.xz";
|
2021-02-08 03:13:49 +00:00
|
|
|
sha256 = "sha256-FMt7JHSTxMzmX7tZAmEeOtAKeocPvB5QrcUEKMUUDPc=";
|
2014-03-01 18:37:39 +00:00
|
|
|
};
|
|
|
|
|
2021-05-07 21:18:14 +00:00
|
|
|
buildInputs = [ glib gtk libfm' libX11 pango gnome.adwaita-icon-theme ];
|
2021-01-17 02:09:27 +00:00
|
|
|
nativeBuildInputs = [ pkg-config wrapGAppsHook intltool ];
|
2017-08-08 20:43:54 +00:00
|
|
|
|
|
|
|
configureFlags = optional withGtk3 "--with-gtk=3";
|
2014-03-01 18:37:39 +00:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://blog.lxde.org/category/pcmanfm/";
|
2014-03-07 17:20:18 +00:00
|
|
|
license = licenses.gpl2Plus;
|
2019-09-03 22:49:40 +00:00
|
|
|
description = "File manager with GTK interface";
|
2014-03-07 17:20:18 +00:00
|
|
|
maintainers = [ maintainers.ttuegel ];
|
|
|
|
platforms = platforms.linux;
|
2023-08-04 18:37:35 +00:00
|
|
|
mainProgram = "pcmanfm";
|
2014-03-01 18:37:39 +00:00
|
|
|
};
|
|
|
|
}
|