lol
1{ lib
2, stdenv
3, fetchurl
4, glib
5, intltool
6, libfm
7, libX11
8, pango
9, pkg-config
10, wrapGAppsHook
11, gnome
12, withGtk3 ? true
13, gtk2
14, gtk3
15}:
16
17let
18 libfm' = libfm.override { inherit withGtk3; };
19 gtk = if withGtk3 then gtk3 else gtk2;
20 inherit (lib) optional;
21in
22stdenv.mkDerivation rec {
23 pname = "pcmanfm";
24 version = "1.3.2";
25
26 src = fetchurl {
27 url = "mirror://sourceforge/pcmanfm/pcmanfm-${version}.tar.xz";
28 sha256 = "sha256-FMt7JHSTxMzmX7tZAmEeOtAKeocPvB5QrcUEKMUUDPc=";
29 };
30
31 buildInputs = [ glib gtk libfm' libX11 pango gnome.adwaita-icon-theme ];
32 nativeBuildInputs = [ pkg-config wrapGAppsHook intltool ];
33
34 configureFlags = optional withGtk3 "--with-gtk=3";
35
36 meta = with lib; {
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";
43 };
44}