![Maximilian Bosch](/assets/img/avatar_default.png)
`udiskie` breaks for me with the following error when using 1.7.4: ``` Traceback (most recent call last): File "/nix/store/cqa72mqgm5gi0xpqp5r8csdizv3p3ajr-udiskie-1.7.4/lib/python3.6/site-packages/udiskie/cli.py", line 307, in _start_async_tasks results = yield self._init() File "/nix/store/cqa72mqgm5gi0xpqp5r8csdizv3p3ajr-udiskie-1.7.4/lib/python3.6/site-packages/udiskie/cli.py", line 495, in _init tasks.append(Async()) NameError: name 'Async' is not defined ``` The error has been confirmed by the Debian issue tracker, so it's obviously not related to NixOS. See https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=899419 for further reference.
50 lines
1.2 KiB
Nix
50 lines
1.2 KiB
Nix
{ stdenv, fetchFromGitHub, asciidoc-full, gettext
|
|
, gobjectIntrospection, gtk3, hicolor-icon-theme, libnotify, librsvg
|
|
, udisks2, wrapGAppsHook
|
|
, buildPythonApplication
|
|
, docopt
|
|
, pygobject3
|
|
, pyyaml
|
|
}:
|
|
|
|
buildPythonApplication rec {
|
|
name = "udiskie-${version}";
|
|
version = "1.7.5";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "coldfix";
|
|
repo = "udiskie";
|
|
rev = version;
|
|
sha256 = "1mcdn8ha5d5nsmrzk6xnnsqrmk94rdrzym9sqm38zk5r8gpyl1k4";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|