push sheeet
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

This commit is contained in:
Dark Steveneq
2025-10-09 14:15:47 +02:00
commit 646b892680
49168 changed files with 5897842 additions and 0 deletions

View File

@@ -0,0 +1,69 @@
{
lib,
python3Packages,
fetchFromGitHub,
libappindicator,
gobject-introspection,
wrapGAppsHook4,
callPackage,
bash,
pipewire,
gtk4,
}:
python3Packages.buildPythonApplication rec {
pname = "pulsemeeter";
version = "2.0.0";
pyproject = true;
src = fetchFromGitHub {
owner = "theRealCarneiro";
repo = "pulsemeeter";
tag = "v${version}";
hash = "sha256-hmQI+E6WmYOK7oN7zTmshFZgJ0UiN2KdZ6ZiXwxRpNs=";
};
build-system = with python3Packages; [
setuptools
babel
];
dependencies = with python3Packages; [
pygobject3
pydantic
pulsectl
pulsectl-asyncio
];
nativeBuildInputs = [
wrapGAppsHook4
gobject-introspection
];
buildInputs = [
libappindicator
pipewire
bash
gtk4
];
makeWrapperArgs = [
"\${gappsWrapperArgs[@]}"
];
dontWrapGApps = true;
pythonImportsCheck = [ "pulsemeeter" ];
passthru.tests.version = callPackage ./version-test.nix { inherit version; };
meta = {
description = "Pulseaudio and pipewire audio mixer inspired by voicemeeter";
license = lib.licenses.mit;
homepage = "https://github.com/theRealCarneiro/pulsemeeter";
maintainers = with lib.maintainers; [
therobot2105
];
mainProgram = "pulsemeeter";
platforms = lib.platforms.linux;
};
}

View File

@@ -0,0 +1,33 @@
{
pkgs,
version,
}:
pkgs.testers.runNixOSTest {
name = "pulsemeeter-version";
nodes.machine =
{ config, pkgs, ... }:
{
services.pulseaudio.enable = true;
services.pulseaudio.systemWide = true;
users.users.alice = {
isNormalUser = true;
password = "foo";
extraGroups = [
"wheel"
"pulse-access"
];
packages = with pkgs; [
pulsemeeter
];
};
};
testScript = ''
machine.wait_for_unit("default.target")
machine.succeed("su -- root -c 'systemctl start pulseaudio'")
machine.succeed("su -- alice -c 'mkdir -p /home/alice/.config/pulsemeeter'")
version = machine.execute("su -- alice -c 'pulsemeeter -v'")
assert version == (0, '${version}\n')
'';
}