1 { lib, python3Packages, fetchFromGitHub, wrapGAppsHook, gobject-introspection, libpulseaudio, glib, gtk3, pango, xorg }:
3 python3Packages.buildPythonApplication rec {
7 src = fetchFromGitHub {
11 sha256 = "1cx27j83pz2qffnzb85fbl1x6pp3irv1kbw7g1hri7kaw6ky4xiz";
15 substituteInPlace volctl/lib/xwrappers.py \
16 --replace 'libXfixes.so' "${xorg.libXfixes}/lib/libXfixes.so" \
17 --replace 'libXfixes.so.3' "${xorg.libXfixes}/lib/libXfixes.so.3"
21 export LD_LIBRARY_PATH=${libpulseaudio}/lib
29 propagatedBuildInputs = [ pango gtk3 ] ++ (with python3Packages; [
36 # with strictDeps importing "gi.repository.Gtk" fails with "gi.RepositoryError: Typelib file for namespace 'Pango', version '1.0' not found"
42 pythonImportsCheck = [ "volctl" ];
45 glib-compile-schemas ${glib.makeSchemaPath "$out" "${pname}-${version}"}
46 gappsWrapperArgs+=(--prefix LD_LIBRARY_PATH : "${libpulseaudio}/lib")
50 description = "PulseAudio enabled volume control featuring per-app sliders";
51 homepage = "https://buzz.github.io/volctl/";
52 license = licenses.gpl2;
53 platforms = platforms.linux;
54 maintainers = [ maintainers.romildo ];