nixpkgs/pkgs/development/libraries/libfm/default.nix

36 lines
1.1 KiB
Nix
Raw Normal View History

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