Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
52 lines
1.2 KiB
Nix
52 lines
1.2 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
replaceVars,
|
|
fetchFromGitHub,
|
|
libpulseaudio,
|
|
python3,
|
|
}:
|
|
|
|
stdenv.mkDerivation {
|
|
pname = "gnome-shell-extension-sound-output-device-chooser";
|
|
# For gnome 42 support many commits not tagged yet are needed.
|
|
version = "unstable-2022-03-29";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "kgshank";
|
|
repo = "gse-sound-output-device-chooser";
|
|
rev = "76f7f59d23f5ffcd66555c7662f43c9cc1ce4742";
|
|
sha256 = "sha256-iPc95LmDsYizLg45wpU+vFx/N6MR2hewSHqoRsePC/4=";
|
|
};
|
|
|
|
patches = [
|
|
# Fix paths to libpulse and python
|
|
(replaceVars ./fix-paths.patch {
|
|
libpulse = "${libpulseaudio}/lib/libpulse.so";
|
|
python = python3.interpreter;
|
|
})
|
|
];
|
|
|
|
dontBuild = true;
|
|
|
|
passthru = {
|
|
extensionUuid = "sound-output-device-chooser@kgshank.net";
|
|
extensionPortalSlug = "sound-output-device-chooser";
|
|
};
|
|
|
|
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 = [ ];
|
|
homepage = "https://github.com/kgshank/gse-sound-output-device-chooser";
|
|
};
|
|
}
|