2017-01-23 22:01:33 +01:00
|
|
|
{ stdenv, fetchurl, glib, gtk2, intltool, menu-cache, pango, pkgconfig, vala_0_34
|
2014-09-20 20:20:19 +02:00
|
|
|
, extraOnly ? false }:
|
2014-11-15 00:07:00 +01:00
|
|
|
let
|
2014-09-20 20:20:19 +02:00
|
|
|
inherit (stdenv.lib) optional;
|
|
|
|
in
|
2016-04-11 19:41:57 +02:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = if extraOnly
|
|
|
|
then "libfm-extra-${version}"
|
|
|
|
else "libfm-${version}";
|
2017-01-23 22:01:33 +01:00
|
|
|
version = "1.2.5";
|
2016-04-11 19:41:57 +02:00
|
|
|
|
2014-03-01 19:37:39 +01:00
|
|
|
src = fetchurl {
|
2016-04-11 19:41:57 +02:00
|
|
|
url = "mirror://sourceforge/pcmanfm/libfm-${version}.tar.xz";
|
2017-01-23 22:01:33 +01:00
|
|
|
sha256 = "0nlvfwh09gbq8bkbvwnw6iqr918rrs9gc9ljb9pjspyg408bn1n7";
|
2014-03-01 19:37:39 +01:00
|
|
|
};
|
|
|
|
|
2017-01-23 22:01:33 +01:00
|
|
|
buildInputs = [ glib gtk2 intltool pango pkgconfig vala_0_34 ]
|
2014-09-20 20:20:19 +02:00
|
|
|
++ optional (!extraOnly) menu-cache;
|
|
|
|
|
|
|
|
configureFlags = optional extraOnly "--with-extra-only";
|
2014-03-01 19:37:39 +01:00
|
|
|
|
2014-03-07 18:20:18 +01:00
|
|
|
meta = with stdenv.lib; {
|
2014-03-01 19:37:39 +01:00
|
|
|
homepage = "http://blog.lxde.org/?cat=28/";
|
2014-11-15 00:07:00 +01:00
|
|
|
license = licenses.lgpl21Plus;
|
2014-03-01 19:37:39 +01:00
|
|
|
description = "A glib-based library for file management";
|
2014-03-07 18:20:18 +01:00
|
|
|
maintainers = [ maintainers.ttuegel ];
|
2017-04-20 23:43:04 +02:00
|
|
|
platforms = platforms.linux ++ platforms.darwin;
|
2014-03-01 19:37:39 +01:00
|
|
|
};
|
|
|
|
}
|