3e2acf8aff
GitOrigin-RevId: d42cd445dde587e9a993cd9434cb43da07c4c5de
46 lines
1.1 KiB
Nix
46 lines
1.1 KiB
Nix
{ lib, stdenv
|
|
, substituteAll
|
|
, fetchFromGitHub
|
|
, libpulseaudio
|
|
, python3
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "gnome-shell-extension-sound-output-device-chooser";
|
|
version = "38";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "kgshank";
|
|
repo = "gse-sound-output-device-chooser";
|
|
rev = version;
|
|
sha256 = "sha256-LZ+C9iK+j7+DEscYCIObxXc0Bn0Z0xSsEFMZxc8REWA=";
|
|
};
|
|
|
|
patches = [
|
|
# Fix paths to libpulse and python
|
|
(substituteAll {
|
|
src = ./fix-paths.patch;
|
|
libpulse = "${libpulseaudio}/lib/libpulse.so";
|
|
python = python3.interpreter;
|
|
})
|
|
];
|
|
|
|
dontBuild = true;
|
|
|
|
uuid = "sound-output-device-chooser@kgshank.net";
|
|
|
|
makeFlags = [
|
|
"INSTALL_DIR=${placeholder "out"}/share/gnome-shell/extensions"
|
|
];
|
|
|
|
preInstall = ''
|
|
mkdir -p ${placeholder "out"}/share/gnome-shell/extensions
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "GNOME Shell extension adding audio device chooser to panel";
|
|
license = licenses.gpl3Plus;
|
|
maintainers = with maintainers; [ jtojnar ];
|
|
homepage = "https://github.com/kgshank/gse-sound-output-device-chooser";
|
|
};
|
|
}
|