mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-05 21:33:07 +00:00
531e4b80c9
Only acts on one-line dependency lists.
36 lines
1.1 KiB
Nix
36 lines
1.1 KiB
Nix
{ stdenv, fetchurl, glib, intltool, menu-cache, pango, pkgconfig, vala_0_34
|
|
, extraOnly ? false
|
|
, withGtk3 ? false, gtk2, gtk3 }:
|
|
let
|
|
gtk = if withGtk3 then gtk3 else gtk2;
|
|
inherit (stdenv.lib) optional;
|
|
in
|
|
stdenv.mkDerivation rec {
|
|
name = if extraOnly
|
|
then "libfm-extra-${version}"
|
|
else "libfm-${version}";
|
|
version = "1.2.5";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://sourceforge/pcmanfm/libfm-${version}.tar.xz";
|
|
sha256 = "0nlvfwh09gbq8bkbvwnw6iqr918rrs9gc9ljb9pjspyg408bn1n7";
|
|
};
|
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
buildInputs = [ glib gtk intltool pango vala_0_34 ]
|
|
++ optional (!extraOnly) menu-cache;
|
|
|
|
configureFlags = [ (optional extraOnly "--with-extra-only")
|
|
(optional withGtk3 "--with-gtk=3") ];
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
meta = with stdenv.lib; {
|
|
homepage = http://blog.lxde.org/?cat=28/;
|
|
license = licenses.lgpl21Plus;
|
|
description = "A glib-based library for file management";
|
|
maintainers = [ maintainers.ttuegel ];
|
|
platforms = platforms.linux ++ platforms.darwin;
|
|
};
|
|
}
|