2018-08-29 17:00:40 -07:00
|
|
|
{ stdenv, fetchurl, glib, intltool, menu-cache, pango, pkgconfig, vala
|
2017-08-08 13:43:54 -07:00
|
|
|
, extraOnly ? false
|
|
|
|
, withGtk3 ? false, gtk2, gtk3 }:
|
2014-11-14 15:07:00 -08:00
|
|
|
let
|
2017-08-08 13:43:54 -07:00
|
|
|
gtk = if withGtk3 then gtk3 else gtk2;
|
2014-09-20 11:20:19 -07:00
|
|
|
inherit (stdenv.lib) optional;
|
|
|
|
in
|
2016-04-11 10:41:57 -07:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = if extraOnly
|
|
|
|
then "libfm-extra-${version}"
|
|
|
|
else "libfm-${version}";
|
2018-12-25 03:51:26 -08:00
|
|
|
version = "1.3.1";
|
2016-04-11 10:41:57 -07:00
|
|
|
|
2014-03-01 10:37:39 -08:00
|
|
|
src = fetchurl {
|
2016-04-11 10:41:57 -07:00
|
|
|
url = "mirror://sourceforge/pcmanfm/libfm-${version}.tar.xz";
|
2018-12-25 03:51:26 -08:00
|
|
|
sha256 = "1r6gl49xrykldwz8y4h2s7gjarxigg3bbkrj0gphxjj1vr5j9ccn";
|
2014-03-01 10:37:39 -08:00
|
|
|
};
|
|
|
|
|
2018-08-29 17:00:40 -07:00
|
|
|
nativeBuildInputs = [ vala pkgconfig intltool ];
|
|
|
|
buildInputs = [ glib gtk pango ] ++ optional (!extraOnly) menu-cache;
|
2014-09-20 11:20:19 -07:00
|
|
|
|
2018-12-25 03:51:26 -08:00
|
|
|
configureFlags = [
|
|
|
|
"--sysconfdir=/etc"
|
|
|
|
] ++ optional extraOnly "--with-extra-only"
|
2018-08-29 17:00:40 -07:00
|
|
|
++ optional withGtk3 "--with-gtk=3";
|
2017-08-08 13:43:54 -07:00
|
|
|
|
2018-12-25 03:51:26 -08:00
|
|
|
installFlags = [
|
|
|
|
"sysconfdir=${placeholder "out"}/etc"
|
|
|
|
];
|
|
|
|
|
2017-08-08 13:43:54 -07:00
|
|
|
enableParallelBuilding = true;
|
2014-03-01 10:37:39 -08:00
|
|
|
|
2014-03-07 09:20:18 -08:00
|
|
|
meta = with stdenv.lib; {
|
2020-03-31 18:11:51 -07:00
|
|
|
homepage = "https://blog.lxde.org/category/pcmanfm/";
|
2014-11-14 15:07:00 -08:00
|
|
|
license = licenses.lgpl21Plus;
|
2014-03-01 10:37:39 -08:00
|
|
|
description = "A glib-based library for file management";
|
2014-03-07 09:20:18 -08:00
|
|
|
maintainers = [ maintainers.ttuegel ];
|
2017-04-20 14:43:04 -07:00
|
|
|
platforms = platforms.linux ++ platforms.darwin;
|
2014-03-01 10:37:39 -08:00
|
|
|
};
|
|
|
|
}
|