1 { lib, python3Packages, fetchFromGitHub, wrapGAppsHook3, gobject-introspection, libpulseaudio, glib, gtk3, pango, xorg }:
3 python3Packages.buildPythonApplication rec {
7 src = fetchFromGitHub {
11 sha256 = "sha256-jzS97KV17wKeBI6deKE4rEj5lvqC38fq1JGundHn2So=";
15 substituteInPlace volctl/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; [
37 # with strictDeps importing "gi.repository.Gtk" fails with "gi.RepositoryError: Typelib file for namespace 'Pango', version '1.0' not found"
43 pythonImportsCheck = [ "volctl" ];
46 glib-compile-schemas ${glib.makeSchemaPath "$out" "${pname}-${version}"}
47 gappsWrapperArgs+=(--prefix LD_LIBRARY_PATH : "${libpulseaudio}/lib")
51 description = "PulseAudio enabled volume control featuring per-app sliders";
52 homepage = "https://buzz.github.io/volctl/";
53 license = licenses.gpl2Only;
54 platforms = platforms.linux;
55 maintainers = [ maintainers.romildo ];
56 mainProgram = "volctl";