nixpkgs-suyu/pkgs/applications/misc/udiskie/default.nix

51 lines
1.2 KiB
Nix
Raw Normal View History

{ stdenv, fetchFromGitHub, asciidoc-full, gettext
, gobjectIntrospection, gtk3, hicolor-icon-theme, libnotify, librsvg
, udisks2, wrapGAppsHook
2017-12-31 16:35:09 +01:00
, buildPythonApplication
, docopt
, pygobject3
, pyyaml
2017-12-31 16:35:09 +01:00
, ...
}:
2017-12-31 16:35:09 +01:00
buildPythonApplication rec {
name = "udiskie-${version}";
2017-12-30 17:38:26 +01:00
version = "1.7.3";
src = fetchFromGitHub {
owner = "coldfix";
repo = "udiskie";
rev = version;
2017-12-30 17:38:26 +01:00
sha256 = "1yv1faq81n3vspf3jprcs5v21l2fchy3m3pc7lk8jb0xqlnh60x4";
};
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 docopt
pygobject3 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 ];
};
}