nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ stdenv, fetchurl, glib, intltool, menu-cache, pango, pkgconfig, vala_0_34
2, extraOnly ? false
3, withGtk3 ? false, gtk2, gtk3 }:
4let
5 gtk = if withGtk3 then gtk3 else gtk2;
6 inherit (stdenv.lib) optional;
7in
8stdenv.mkDerivation rec {
9 name = if extraOnly
10 then "libfm-extra-${version}"
11 else "libfm-${version}";
12 version = "1.2.5";
13
14 src = fetchurl {
15 url = "mirror://sourceforge/pcmanfm/libfm-${version}.tar.xz";
16 sha256 = "0nlvfwh09gbq8bkbvwnw6iqr918rrs9gc9ljb9pjspyg408bn1n7";
17 };
18
19 buildInputs = [ glib gtk intltool pango pkgconfig vala_0_34 ]
20 ++ optional (!extraOnly) menu-cache;
21
22 configureFlags = [ (optional extraOnly "--with-extra-only")
23 (optional withGtk3 "--with-gtk=3") ];
24
25 enableParallelBuilding = true;
26
27 meta = with stdenv.lib; {
28 homepage = http://blog.lxde.org/?cat=28/;
29 license = licenses.lgpl21Plus;
30 description = "A glib-based library for file management";
31 maintainers = [ maintainers.ttuegel ];
32 platforms = platforms.linux ++ platforms.darwin;
33 };
34}