2016-09-10 11:16:39 +01:00
|
|
|
{ stdenv, fetchFromGitHub, asciidoc-full, gettext
|
2016-10-01 12:12:56 +01:00
|
|
|
, gobjectIntrospection, gtk3, hicolor_icon_theme, libnotify, librsvg
|
2016-09-10 11:16:39 +01:00
|
|
|
, 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
|
2016-10-01 12:12:56 +01:00
|
|
|
librsvg # required for loading svg icons (udiskie uses svg icons)
|
2016-09-10 11:16:39 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|