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

35 lines
1 KiB
Nix
Raw Normal View History

2018-08-30 02:00:40 +02:00
{ stdenv, fetchurl, glib, intltool, menu-cache, pango, pkgconfig, vala
2017-08-08 22:43:54 +02:00
, extraOnly ? false
, withGtk3 ? false, gtk2, gtk3 }:
2014-11-15 00:07:00 +01:00
let
2017-08-08 22:43:54 +02:00
gtk = if withGtk3 then gtk3 else gtk2;
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}";
version = "1.3.0.2";
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";
sha256 = "0wkwbi1nyvqza3r1dhrq846axiiq0fy0dqgngnagh76fjrwnzl0q";
2014-03-01 19:37:39 +01:00
};
2018-08-30 02:00:40 +02:00
nativeBuildInputs = [ vala pkgconfig intltool ];
buildInputs = [ glib gtk pango ] ++ optional (!extraOnly) menu-cache;
2018-08-30 02:00:40 +02:00
configureFlags = optional extraOnly "--with-extra-only"
++ optional withGtk3 "--with-gtk=3";
2017-08-08 22:43:54 +02:00
enableParallelBuilding = true;
2014-03-01 19:37:39 +01:00
meta = with stdenv.lib; {
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";
maintainers = [ maintainers.ttuegel ];
2017-04-20 23:43:04 +02:00
platforms = platforms.linux ++ platforms.darwin;
2014-03-01 19:37:39 +01:00
};
}