7cbac10661
GitOrigin-RevId: a371c1071161104d329f6a85d922fd92b7cbab63
50 lines
1.1 KiB
Nix
50 lines
1.1 KiB
Nix
{ stdenv, fetchFromGitHub, python3, libpulseaudio, glib, gtk3, gobject-introspection, wrapGAppsHook }:
|
|
|
|
python3.pkgs.buildPythonApplication rec {
|
|
pname = "volctl";
|
|
version = "0.6.3";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "buzz";
|
|
repo = pname;
|
|
rev = version;
|
|
sha256 = "0rppqc5wiqxd83z2mgvhi6gdx7yhy9wnav1dbbi1wvm7lzw6fnil";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
gobject-introspection
|
|
wrapGAppsHook
|
|
];
|
|
|
|
buildInputs = [
|
|
glib
|
|
gtk3
|
|
libpulseaudio
|
|
];
|
|
|
|
pythonPath = with python3.pkgs; [
|
|
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";
|
|
homepage = "https://buzz.github.io/volctl/";
|
|
license = licenses.gpl2;
|
|
platforms = platforms.linux;
|
|
maintainers = [ maintainers.romildo ];
|
|
};
|
|
}
|