nixpkgs/pkgs/applications/file-managers/pcmanfm/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

45 lines
963 B
Nix
Raw Normal View History

{ lib
, stdenv
, fetchurl
, glib
, intltool
, libfm
, libX11
, pango
, pkg-config
, wrapGAppsHook
, gnome
, 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 {
pname = "pcmanfm";
version = "1.3.2";
2014-03-01 19:37:39 +01:00
src = fetchurl {
url = "mirror://sourceforge/pcmanfm/pcmanfm-${version}.tar.xz";
2021-02-08 04:13:49 +01:00
sha256 = "sha256-FMt7JHSTxMzmX7tZAmEeOtAKeocPvB5QrcUEKMUUDPc=";
2014-03-01 19:37:39 +01:00
};
buildInputs = [ glib gtk libfm' libX11 pango gnome.adwaita-icon-theme ];
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
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;
mainProgram = "pcmanfm";
2014-03-01 19:37:39 +01:00
};
}