3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/misc/pcmanfm/default.nix

29 lines
891 B
Nix
Raw Normal View History

2017-08-08 21:43:54 +01:00
{ stdenv, fetchurl, glib, intltool, libfm, libX11, pango, pkgconfig
, wrapGAppsHook, gnome3, withGtk3 ? true, gtk2, gtk3 }:
2014-03-01 18:37:39 +00:00
2017-08-08 21:43:54 +01:00
let
libfm' = libfm.override { inherit withGtk3; };
gtk = if withGtk3 then gtk3 else gtk2;
inherit (stdenv.lib) optional;
in
2016-04-11 18:41:57 +01:00
stdenv.mkDerivation rec {
2017-01-23 21:01:40 +00:00
name = "pcmanfm-1.2.5";
2014-03-01 18:37:39 +00:00
src = fetchurl {
2016-04-11 18:41:57 +01:00
url = "mirror://sourceforge/pcmanfm/${name}.tar.xz";
2017-01-23 21:01:40 +00:00
sha256 = "0rxdh0dfzc84l85c54blq42gczygq8adhr3l9hqzy1dp530cm1hc";
2014-03-01 18:37:39 +00:00
};
buildInputs = [ glib gtk libfm' libX11 pango gnome3.defaultIconTheme ];
nativeBuildInputs = [ pkgconfig wrapGAppsHook intltool ];
2017-08-08 21:43:54 +01:00
configureFlags = optional withGtk3 "--with-gtk=3";
2014-03-01 18:37:39 +00:00
meta = with stdenv.lib; {
homepage = http://blog.lxde.org/?cat=28/;
license = licenses.gpl2Plus;
2014-03-01 18:37:39 +00:00
description = "File manager with GTK+ interface";
maintainers = [ maintainers.ttuegel ];
platforms = platforms.linux;
2014-03-01 18:37:39 +00:00
};
}