diff options
author | AndersonTorres <torres.anderson.85@protonmail.com> | 2022-06-26 23:20:53 -0300 |
---|---|---|
committer | AndersonTorres <torres.anderson.85@protonmail.com> | 2022-06-26 23:58:12 -0300 |
commit | e284d732bb834c598dc039981504e163b4e11dfb (patch) | |
tree | c9022f6812c963ca9d7fc59b467b10312e6d4a22 /pkgs/applications/file-managers | |
parent | 2e6338d62e8bdeeb7cf0001b1ecd704505a3fc8a (diff) |
pcmanfm: move to applications/file-managers
Diffstat (limited to 'pkgs/applications/file-managers')
-rw-r--r-- | pkgs/applications/file-managers/pcmanfm/default.nix | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/pkgs/applications/file-managers/pcmanfm/default.nix b/pkgs/applications/file-managers/pcmanfm/default.nix new file mode 100644 index 0000000000000..deb9a98a517c3 --- /dev/null +++ b/pkgs/applications/file-managers/pcmanfm/default.nix @@ -0,0 +1,43 @@ +{ lib +, stdenv +, fetchurl +, glib +, intltool +, libfm +, libX11 +, pango +, pkg-config +, wrapGAppsHook +, gnome +, withGtk3 ? true +, gtk2 +, gtk3 +}: + +let + libfm' = libfm.override { inherit withGtk3; }; + gtk = if withGtk3 then gtk3 else gtk2; + inherit (lib) optional; +in +stdenv.mkDerivation rec { + pname = "pcmanfm"; + version = "1.3.2"; + + src = fetchurl { + url = "mirror://sourceforge/pcmanfm/pcmanfm-${version}.tar.xz"; + sha256 = "sha256-FMt7JHSTxMzmX7tZAmEeOtAKeocPvB5QrcUEKMUUDPc="; + }; + + buildInputs = [ glib gtk libfm' libX11 pango gnome.adwaita-icon-theme ]; + nativeBuildInputs = [ pkg-config wrapGAppsHook intltool ]; + + configureFlags = optional withGtk3 "--with-gtk=3"; + + meta = with lib; { + homepage = "https://blog.lxde.org/category/pcmanfm/"; + license = licenses.gpl2Plus; + description = "File manager with GTK interface"; + maintainers = [ maintainers.ttuegel ]; + platforms = platforms.linux; + }; +} |