2020-10-18 21:16:58 +01:00
|
|
|
{ stdenv, fetchFromGitHub, python3, libpulseaudio, glib, gtk3, gobject-introspection, wrapGAppsHook }:
|
2019-12-19 15:05:27 +00:00
|
|
|
|
2020-10-18 21:16:58 +01:00
|
|
|
python3.pkgs.buildPythonApplication rec {
|
2019-12-19 15:05:27 +00:00
|
|
|
pname = "volctl";
|
2020-03-20 15:20:00 +00:00
|
|
|
version = "0.6.3";
|
2019-12-19 15:05:27 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "buzz";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2020-03-20 15:20:00 +00:00
|
|
|
sha256 = "0rppqc5wiqxd83z2mgvhi6gdx7yhy9wnav1dbbi1wvm7lzw6fnil";
|
2019-12-19 15:05:27 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
gobject-introspection
|
|
|
|
wrapGAppsHook
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
glib
|
|
|
|
gtk3
|
|
|
|
libpulseaudio
|
|
|
|
];
|
|
|
|
|
2020-10-18 21:16:58 +01:00
|
|
|
pythonPath = with python3.pkgs; [
|
2019-12-19 15:05:27 +00:00
|
|
|
pygobject3
|
|
|
|
];
|
|
|
|
|
|
|
|
strictDeps = false;
|
|
|
|
|
|
|
|
preBuild = ''
|
|
|
|
export LD_LIBRARY_PATH=${libpulseaudio}/lib
|
|
|
|
'';
|
|
|
|
|
|
|
|
preFixup = ''
|
|
|
|
glib-compile-schemas ${glib.makeSchemaPath "$out" "${pname}-${version}"}
|
|
|
|
|
|
|
|
gappsWrapperArgs+=(
|
|
|
|
--prefix LD_LIBRARY_PATH : "${libpulseaudio}/lib"
|
|
|
|
)
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "PulseAudio enabled volume control featuring per-app sliders";
|
2020-03-20 15:20:00 +00:00
|
|
|
homepage = "https://buzz.github.io/volctl/";
|
2019-12-19 15:05:27 +00:00
|
|
|
license = licenses.gpl2;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = [ maintainers.romildo ];
|
|
|
|
};
|
|
|
|
}
|