summary refs log tree commit diff
path: root/pkgs/desktops/xfce-4.8/support/libgdu.nix
blob: 32835f0434abb55da77b74629591e0f992d52acd (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
{ stdenv, fetchurl, gnome, pkgconfig, glib, dbus_glib, intltool, udev, gtk
, libnotify, udisks, libatasmart, avahi
, autoconf, automake, libtool }:

let version = "2.30.1"; in

stdenv.mkDerivation rec {
  name = "libgdu-${version}";
  
  src = fetchurl {
    url = "mirror://gnome/sources/gnome-disk-utility/2.30/gnome-disk-utility-${version}.tar.bz2";
    sha256 = "df9b336c780b5d77ceda54e96f7c37c67645f5e73d48754ba0a8efba7c1836d7";
  };

  # Only build libgdu, not all that Gnome crap.
  patches = [ ./libgdu-only.patch ];

  buildInputs =
    [ pkgconfig glib dbus_glib udisks
      autoconf automake libtool
    ];

  preConfigure =
    ''
      substituteInPlace src/gdu/Makefile.am --replace /usr/share/dbus-1/interfaces ${udisks}/share/dbus-1/interfaces
      autoreconf -f -i
    '';

  postConfigure = "cd src/gdu";

  meta = {
    description = "Xfce/Gvfs support library for mounting filesystems";
  };
}