nixpkgs-suyu/pkgs/applications/misc/udiskie/default.nix
Benno Fünfstück 5e9c72c2e4 udiskie: fix broken icons
Udiskie uses SVG icons for its tray icon. In order to load these,
librsvg needs to be included in the $GDK_PIXBUF_MODULE_FILE(loaders.cache).
Without librsvg, gdk does not support SVG images so the icons won't be
used.

If we add librsvg to buildInputs, the wrapGAppsHook will make sure that
the librsvg is included in the $GDK_PIXBUF_MODULE_FILE.
2016-10-01 13:15:14 +02:00

44 lines
1.2 KiB
Nix

{ stdenv, fetchFromGitHub, asciidoc-full, gettext
, gobjectIntrospection, gtk3, hicolor_icon_theme, libnotify, librsvg
, pythonPackages, udisks2, wrapGAppsHook }:
pythonPackages.buildPythonApplication rec {
name = "udiskie-${version}";
version = "1.5.1";
src = fetchFromGitHub {
owner = "coldfix";
repo = "udiskie";
rev = version;
sha256 = "01x5fvllb262x6r3547l23z7p6hr7ddz034bkhmj2cqmf83sxwxd";
};
buildInputs = [
asciidoc-full # For building man page.
hicolor_icon_theme
wrapGAppsHook
librsvg # required for loading svg icons (udiskie uses svg icons)
];
propagatedBuildInputs = [
gettext gobjectIntrospection gtk3 libnotify pythonPackages.docopt
pythonPackages.pygobject3 pythonPackages.pyyaml udisks2
];
postBuild = "make -C doc";
postInstall = ''
mkdir -p $out/share/man/man8
cp -v doc/udiskie.8 $out/share/man/man8/
'';
# tests require dbusmock
doCheck = false;
meta = with stdenv.lib; {
description = "Removable disk automounter for udisks";
license = licenses.mit;
homepage = https://github.com/coldfix/udiskie;
maintainers = with maintainers; [ AndersonTorres ];
};
}