2016-09-10 12:16:39 +02:00
|
|
|
{ stdenv, fetchFromGitHub, asciidoc-full, gettext
|
2018-02-25 03:23:58 +01:00
|
|
|
, gobjectIntrospection, gtk3, hicolor-icon-theme, libnotify, librsvg
|
2017-12-31 01:50:56 +01:00
|
|
|
, udisks2, wrapGAppsHook
|
2017-12-31 16:35:09 +01:00
|
|
|
, buildPythonApplication
|
2017-12-31 01:50:56 +01:00
|
|
|
, docopt
|
|
|
|
, pygobject3
|
|
|
|
, pyyaml
|
2017-12-31 16:35:09 +01:00
|
|
|
, ...
|
2017-12-31 01:50:56 +01:00
|
|
|
}:
|
|
|
|
|
2017-12-31 16:35:09 +01:00
|
|
|
buildPythonApplication rec {
|
2016-09-10 12:16:39 +02:00
|
|
|
name = "udiskie-${version}";
|
2017-12-30 17:38:26 +01:00
|
|
|
version = "1.7.3";
|
2016-09-10 12:16:39 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "coldfix";
|
|
|
|
repo = "udiskie";
|
|
|
|
rev = version;
|
2017-12-30 17:38:26 +01:00
|
|
|
sha256 = "1yv1faq81n3vspf3jprcs5v21l2fchy3m3pc7lk8jb0xqlnh60x4";
|
2016-09-10 12:16:39 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
asciidoc-full # For building man page.
|
2018-02-25 03:23:58 +01:00
|
|
|
hicolor-icon-theme
|
2016-09-10 12:16:39 +02:00
|
|
|
wrapGAppsHook
|
2016-10-01 13:12:56 +02:00
|
|
|
librsvg # required for loading svg icons (udiskie uses svg icons)
|
2016-09-10 12:16:39 +02:00
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
2017-12-31 01:50:56 +01:00
|
|
|
gettext gobjectIntrospection gtk3 libnotify docopt
|
|
|
|
pygobject3 pyyaml udisks2
|
2016-09-10 12:16:39 +02:00
|
|
|
];
|
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|