forked from mirrors/nixpkgs
43 lines
1.7 KiB
Nix
43 lines
1.7 KiB
Nix
{ stdenv, intltool, fetchurl, pkgconfig, udisks2, libsecret, libdvdread
|
|
, bash, gtk3, glib, hicolor_icon_theme, makeWrapper, cracklib, libnotify
|
|
, itstool, gnome3, librsvg, gdk_pixbuf, libxml2, python
|
|
, libcanberra_gtk3, libxslt, libtool, docbook_xsl, libpwquality }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "gnome-disk-utility-3.10.0";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://gnome/sources/gnome-disk-utility/3.10/${name}.tar.xz";
|
|
sha256 = "1amqi2bribxn8r8k8mvxh3710rmdll9963smf0v59v0iwxi3mqil";
|
|
};
|
|
|
|
doCheck = true;
|
|
|
|
NIX_CFLAGS_COMPILE = "-I${gnome3.glib}/include/gio-unix-2.0";
|
|
|
|
propagatedUserEnvPkgs = [ gnome3.gnome_themes_standard ];
|
|
propagatedBuildInputs = [ gdk_pixbuf gnome3.gnome_icon_theme
|
|
librsvg udisks2 gnome3.gnome_settings_daemon
|
|
hicolor_icon_theme gnome3.gnome_icon_theme_symbolic ];
|
|
|
|
buildInputs = [ bash pkgconfig gtk3 glib intltool itstool
|
|
libxslt libtool libsecret libpwquality cracklib
|
|
libnotify libdvdread libcanberra_gtk3 docbook_xsl
|
|
gnome3.gsettings_desktop_schemas makeWrapper libxml2 ];
|
|
|
|
preFixup = ''
|
|
wrapProgram "$out/bin/gnome-disks" \
|
|
--set GDK_PIXBUF_MODULE_FILE "$GDK_PIXBUF_MODULE_FILE" \
|
|
--prefix XDG_DATA_DIRS : "${gtk3}/share:${gnome3.gnome_themes_standard}/share:$out/share:$XDG_ICON_DIRS:$GSETTINGS_SCHEMAS_PATH"
|
|
rm $out/share/icons/hicolor/icon-theme.cache
|
|
'';
|
|
|
|
meta = with stdenv.lib; {
|
|
homepage = http://en.wikipedia.org/wiki/GNOME_Disks;
|
|
description = "A udisks graphical front-end";
|
|
maintainers = with maintainers; [ lethalman ];
|
|
license = licenses.gpl2;
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|