2023-08-22 20:05:09 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
2024-04-21 15:54:59 +00:00
|
|
|
, fetchFromGitLab
|
2023-08-22 20:05:09 +00:00
|
|
|
, cargo
|
|
|
|
, desktop-file-utils
|
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, pkg-config
|
|
|
|
, rustPlatform
|
|
|
|
, rustc
|
|
|
|
, wrapGAppsHook4
|
|
|
|
, cairo
|
|
|
|
, gdk-pixbuf
|
|
|
|
, glib
|
|
|
|
, gtk4
|
|
|
|
, libadwaita
|
|
|
|
, pango
|
|
|
|
, pipewire
|
|
|
|
, wireplumber
|
|
|
|
}:
|
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
let
|
|
|
|
wireplumber_0_4 = wireplumber.overrideAttrs (attrs: rec {
|
|
|
|
version = "0.4.17";
|
|
|
|
src = fetchFromGitLab {
|
|
|
|
domain = "gitlab.freedesktop.org";
|
|
|
|
owner = "pipewire";
|
|
|
|
repo = "wireplumber";
|
|
|
|
rev = version;
|
|
|
|
hash = "sha256-vhpQT67+849WV1SFthQdUeFnYe/okudTQJoL3y+wXwI=";
|
|
|
|
};
|
|
|
|
});
|
|
|
|
in
|
2023-08-22 20:05:09 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "pwvucontrol";
|
2024-06-20 14:57:18 +00:00
|
|
|
version = "0.4.2";
|
2023-08-22 20:05:09 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "saivert";
|
|
|
|
repo = "pwvucontrol";
|
|
|
|
rev = version;
|
2024-06-20 14:57:18 +00:00
|
|
|
hash = "sha256-cWNWdCMk9hF8Nzq2UFBEKSx1zS8JlplMG7B5gv7BaZA=";
|
2023-08-22 20:05:09 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
cargoDeps = rustPlatform.importCargoLock {
|
|
|
|
lockFile = ./Cargo.lock;
|
|
|
|
outputHashes = {
|
2024-06-20 14:57:18 +00:00
|
|
|
"wireplumber-0.1.0" = "sha256-r3p4OpmMgiFgjn1Fj4LeMOhx6R2UWollIdJRy/0kiNM=";
|
2023-08-22 20:05:09 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
cargo
|
|
|
|
desktop-file-utils
|
|
|
|
meson
|
|
|
|
ninja
|
|
|
|
pkg-config
|
|
|
|
rustPlatform.bindgenHook
|
|
|
|
rustPlatform.cargoSetupHook
|
|
|
|
rustc
|
|
|
|
wrapGAppsHook4
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
cairo
|
|
|
|
gdk-pixbuf
|
|
|
|
glib
|
|
|
|
gtk4
|
|
|
|
libadwaita
|
|
|
|
pango
|
|
|
|
pipewire
|
2024-04-21 15:54:59 +00:00
|
|
|
wireplumber_0_4
|
2023-08-22 20:05:09 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Pipewire Volume Control";
|
|
|
|
homepage = "https://github.com/saivert/pwvucontrol";
|
|
|
|
license = licenses.gpl3Plus;
|
2024-06-20 14:57:18 +00:00
|
|
|
maintainers = with maintainers; [ figsoda Guanran928 ];
|
2023-08-22 20:05:09 +00:00
|
|
|
mainProgram = "pwvucontrol";
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|