mumble-git: init at 1.5.634-unstable-2024-10-05
no more qt5 >:) Version 256 -> 257: mumble: 1.5.634, 1.5.634-fish → 1.5.634-unstable-2024-10-05, 1.5.634-unstable-2024-10-05-fish, -174.6 KiB qtbase: 5.15.14 → ∅, -46431.0 KiB qtdeclarative: 5.15.14 → ∅, -21670.9 KiB qtquickcontrols: 5.15.14 → ∅, -5387.2 KiB qtsvg: 5.15.14 → ∅, -568.6 KiB qttools: 5.15.14 → ∅, -11973.5 KiB qttranslations: 5.15.14 → ∅, -15127.5 KiB qtwayland: 5.15.14 → ∅, -6992.5 KiB
This commit is contained in:
parent
0a7f0c4355
commit
67b0b91e70
4 changed files with 154 additions and 22 deletions
11
flake.nix
11
flake.nix
|
@ -114,7 +114,16 @@
|
||||||
checks.formatting = treefmtEval.config.build.check inputs.self;
|
checks.formatting = treefmtEval.config.build.check inputs.self;
|
||||||
|
|
||||||
# nix {run,shell,build}
|
# nix {run,shell,build}
|
||||||
legacyPackages = import ./pkgs pkgs;
|
# NOTE: 301: All packages are migrated to `github:Guanran928/nur-packages`,
|
||||||
|
# only keeping some packages that only fits for personal use.
|
||||||
|
legacyPackages =
|
||||||
|
pkgs.lib.packagesFromDirectoryRecursive {
|
||||||
|
inherit (pkgs) callPackage;
|
||||||
|
directory = ./pkgs;
|
||||||
|
}
|
||||||
|
// {
|
||||||
|
background = pkgs.nixos-artwork.wallpapers.nineish-dark-gray.src;
|
||||||
|
};
|
||||||
|
|
||||||
# nix develop
|
# nix develop
|
||||||
devShells.default = pkgs.mkShellNoCC {
|
devShells.default = pkgs.mkShellNoCC {
|
||||||
|
|
|
@ -1,4 +1,9 @@
|
||||||
{ lib, pkgs, ... }:
|
{
|
||||||
|
lib,
|
||||||
|
inputs,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}:
|
||||||
{
|
{
|
||||||
home = {
|
home = {
|
||||||
username = "guanranwang";
|
username = "guanranwang";
|
||||||
|
@ -25,24 +30,27 @@
|
||||||
udiskie.enable = true;
|
udiskie.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
home.packages = with pkgs; [
|
home.packages =
|
||||||
dconf-editor
|
(with pkgs; [
|
||||||
fastfetch
|
dconf-editor
|
||||||
fd
|
fastfetch
|
||||||
file-roller
|
fd
|
||||||
fractal
|
file-roller
|
||||||
gnome-calculator
|
fractal
|
||||||
hyperfine
|
gnome-calculator
|
||||||
libnotify
|
hyperfine
|
||||||
loupe
|
libnotify
|
||||||
pwvucontrol
|
loupe
|
||||||
seahorse
|
pwvucontrol
|
||||||
wl-clipboard
|
seahorse
|
||||||
|
wl-clipboard
|
||||||
|
|
||||||
mumble
|
osu-lazer-bin
|
||||||
osu-lazer-bin
|
prismlauncher
|
||||||
prismlauncher
|
])
|
||||||
];
|
++ (with inputs.self.legacyPackages.${pkgs.stdenv.hostPlatform.system}; [
|
||||||
|
mumble-git
|
||||||
|
]);
|
||||||
|
|
||||||
home.sessionVariables = {
|
home.sessionVariables = {
|
||||||
# https://github.com/ppy/osu-framework/pull/6292
|
# https://github.com/ppy/osu-framework/pull/6292
|
||||||
|
|
|
@ -1,3 +0,0 @@
|
||||||
# NOTE: 301: All packages are migrated to `github:Guanran928/nur-packages`,
|
|
||||||
# only keeping some packages that only fits for personal use.
|
|
||||||
pkgs: { background = pkgs.nixos-artwork.wallpapers.nineish-dark-gray.src; }
|
|
118
pkgs/mumble-git/package.nix
Normal file
118
pkgs/mumble-git/package.nix
Normal file
|
@ -0,0 +1,118 @@
|
||||||
|
{
|
||||||
|
lib,
|
||||||
|
alsa-lib,
|
||||||
|
avahi-compat,
|
||||||
|
boost,
|
||||||
|
cmake,
|
||||||
|
fetchFromGitHub,
|
||||||
|
flac,
|
||||||
|
libjack2,
|
||||||
|
libogg,
|
||||||
|
libopus,
|
||||||
|
libpulseaudio,
|
||||||
|
libsndfile,
|
||||||
|
libvorbis,
|
||||||
|
nixosTests,
|
||||||
|
pipewire,
|
||||||
|
pkg-config,
|
||||||
|
poco,
|
||||||
|
protobuf,
|
||||||
|
python3,
|
||||||
|
qt6,
|
||||||
|
rnnoise,
|
||||||
|
speechd,
|
||||||
|
speex,
|
||||||
|
stdenv,
|
||||||
|
jackSupport ? false,
|
||||||
|
pipewireSupport ? true,
|
||||||
|
pulseSupport ? true,
|
||||||
|
speechdSupport ? false,
|
||||||
|
}:
|
||||||
|
stdenv.mkDerivation (finalAttrs: {
|
||||||
|
pname = "mumble";
|
||||||
|
version = "1.5.634-unstable-2024-10-05";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "mumble-voip";
|
||||||
|
repo = "mumble";
|
||||||
|
rev = "cb01bfa5200fce53db68b769d05995c999e7cdd8";
|
||||||
|
hash = "sha256-Tf029ae+PfFPhchU45y96IJVeY9GPzWD2E+NprI/ZYk=";
|
||||||
|
fetchSubmodules = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
nativeBuildInputs = [
|
||||||
|
cmake
|
||||||
|
pkg-config
|
||||||
|
python3
|
||||||
|
qt6.wrapQtAppsHook
|
||||||
|
qt6.qttools
|
||||||
|
];
|
||||||
|
|
||||||
|
buildInputs =
|
||||||
|
[
|
||||||
|
avahi-compat
|
||||||
|
boost
|
||||||
|
flac
|
||||||
|
libogg
|
||||||
|
libopus
|
||||||
|
libsndfile
|
||||||
|
libvorbis
|
||||||
|
poco
|
||||||
|
protobuf
|
||||||
|
qt6.qtsvg
|
||||||
|
rnnoise
|
||||||
|
speex
|
||||||
|
]
|
||||||
|
++ lib.optional (!jackSupport) alsa-lib
|
||||||
|
++ lib.optional jackSupport libjack2
|
||||||
|
++ lib.optional speechdSupport speechd
|
||||||
|
++ lib.optional pulseSupport libpulseaudio
|
||||||
|
++ lib.optional pipewireSupport pipewire;
|
||||||
|
|
||||||
|
env.NIX_CFLAGS_COMPILE = lib.optionalString speechdSupport "-I${speechd}/include/speech-dispatcher";
|
||||||
|
|
||||||
|
cmakeFlags =
|
||||||
|
[
|
||||||
|
"-D g15=OFF"
|
||||||
|
"-D server=OFF"
|
||||||
|
"-D bundled-celt=ON"
|
||||||
|
"-D bundled-opus=OFF"
|
||||||
|
"-D bundled-speex=OFF"
|
||||||
|
"-D bundle-qt-translations=OFF"
|
||||||
|
"-D update=OFF"
|
||||||
|
"-D overlay-xcompile=OFF"
|
||||||
|
"-D oss=OFF"
|
||||||
|
"-D warnings-as-errors=OFF" # conversion error workaround
|
||||||
|
]
|
||||||
|
++ lib.optional (!speechdSupport) "-D speechd=OFF"
|
||||||
|
++ lib.optional (!pulseSupport) "-D pulseaudio=OFF"
|
||||||
|
++ lib.optional (!pipewireSupport) "-D pipewire=OFF"
|
||||||
|
++ lib.optional jackSupport "-D alsa=OFF -D jackaudio=ON";
|
||||||
|
|
||||||
|
preConfigure = ''
|
||||||
|
patchShebangs scripts
|
||||||
|
'';
|
||||||
|
|
||||||
|
postFixup = ''
|
||||||
|
wrapProgram $out/bin/mumble \
|
||||||
|
--prefix LD_LIBRARY_PATH : "${
|
||||||
|
lib.makeLibraryPath (
|
||||||
|
lib.optional pulseSupport libpulseaudio ++ lib.optional pipewireSupport pipewire
|
||||||
|
)
|
||||||
|
}"
|
||||||
|
'';
|
||||||
|
|
||||||
|
passthru.tests.connectivity = nixosTests.mumble;
|
||||||
|
|
||||||
|
meta = {
|
||||||
|
description = "Low-latency, high quality voice chat software";
|
||||||
|
homepage = "https://mumble.info";
|
||||||
|
license = lib.licenses.bsd3;
|
||||||
|
mainProgram = "mumble";
|
||||||
|
maintainers = with lib.maintainers; [
|
||||||
|
felixsinger
|
||||||
|
lilacious
|
||||||
|
];
|
||||||
|
platforms = lib.platforms.linux;
|
||||||
|
};
|
||||||
|
})
|
Loading…
Reference in a new issue