2017-08-08 20:43:54 +00:00
|
|
|
{ stdenv, fetchurl, glib, intltool, menu-cache, pango, pkgconfig, vala_0_34
|
|
|
|
, extraOnly ? false
|
|
|
|
, withGtk3 ? false, gtk2, gtk3 }:
|
2014-11-14 23:07:00 +00:00
|
|
|
let
|
2017-08-08 20:43:54 +00:00
|
|
|
gtk = if withGtk3 then gtk3 else gtk2;
|
2014-09-20 18:20:19 +00:00
|
|
|
inherit (stdenv.lib) optional;
|
|
|
|
in
|
2016-04-11 17:41:57 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = if extraOnly
|
|
|
|
then "libfm-extra-${version}"
|
|
|
|
else "libfm-${version}";
|
2018-05-07 09:08:52 +00:00
|
|
|
version = "1.3.0.2";
|
2016-04-11 17:41:57 +00:00
|
|
|
|
2014-03-01 18:37:39 +00:00
|
|
|
src = fetchurl {
|
2016-04-11 17:41:57 +00:00
|
|
|
url = "mirror://sourceforge/pcmanfm/libfm-${version}.tar.xz";
|
2018-05-07 09:08:52 +00:00
|
|
|
sha256 = "0wkwbi1nyvqza3r1dhrq846axiiq0fy0dqgngnagh76fjrwnzl0q";
|
2014-03-01 18:37:39 +00:00
|
|
|
};
|
|
|
|
|
2017-09-05 21:26:13 +00:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
|
|
buildInputs = [ glib gtk intltool pango vala_0_34 ]
|
2014-09-20 18:20:19 +00:00
|
|
|
++ optional (!extraOnly) menu-cache;
|
|
|
|
|
2017-08-08 20:43:54 +00:00
|
|
|
configureFlags = [ (optional extraOnly "--with-extra-only")
|
|
|
|
(optional withGtk3 "--with-gtk=3") ];
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
2014-03-01 18:37:39 +00:00
|
|
|
|
2014-03-07 17:20:18 +00:00
|
|
|
meta = with stdenv.lib; {
|
2017-08-01 20:03:30 +00:00
|
|
|
homepage = http://blog.lxde.org/?cat=28/;
|
2014-11-14 23:07:00 +00:00
|
|
|
license = licenses.lgpl21Plus;
|
2014-03-01 18:37:39 +00:00
|
|
|
description = "A glib-based library for file management";
|
2014-03-07 17:20:18 +00:00
|
|
|
maintainers = [ maintainers.ttuegel ];
|
2017-04-20 21:43:04 +00:00
|
|
|
platforms = platforms.linux ++ platforms.darwin;
|
2014-03-01 18:37:39 +00:00
|
|
|
};
|
|
|
|
}
|