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
71 lines
2.2 KiB
Nix
71 lines
2.2 KiB
Nix
{
|
|
lib,
|
|
fetchFromGitHub,
|
|
rustPlatform,
|
|
installShellFiles,
|
|
pkg-config,
|
|
libpulseaudio,
|
|
dbus,
|
|
openssl,
|
|
speechd-minimal,
|
|
udevCheckHook,
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "goxlr-utility";
|
|
version = "1.2.2";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "GoXLR-on-Linux";
|
|
repo = "goxlr-utility";
|
|
rev = "v${version}";
|
|
hash = "sha256-Z/VqQKmfzqd1htMlXU8sDkOSw2xczb3tG53LVC0MZhM=";
|
|
};
|
|
|
|
cargoHash = "sha256-tSlFMMZWsyZBXBeEW64s0eBt/qrAREfOpfxAgcTK4XQ=";
|
|
|
|
buildInputs = [
|
|
libpulseaudio
|
|
dbus
|
|
speechd-minimal
|
|
openssl
|
|
];
|
|
|
|
nativeBuildInputs = [
|
|
pkg-config
|
|
installShellFiles
|
|
rustPlatform.bindgenHook
|
|
udevCheckHook
|
|
];
|
|
|
|
buildFeatures = [ "tts" ];
|
|
|
|
doInstallCheck = true;
|
|
|
|
postInstall = ''
|
|
install -Dm644 "50-goxlr.rules" "$out/etc/udev/rules.d/50-goxlr.rules"
|
|
install -Dm644 "daemon/resources/goxlr-utility.png" "$out/share/icons/hicolor/48x48/apps/goxlr-utility.png"
|
|
install -Dm644 "daemon/resources/goxlr-utility.svg" "$out/share/icons/hicolor/scalable/apps/goxlr-utility.svg"
|
|
install -Dm644 "daemon/resources/goxlr-utility-large.png" "$out/share/pixmaps/goxlr-utility.png"
|
|
install -Dm644 "daemon/resources/goxlr-utility.desktop" "$out/share/applications/goxlr-utility.desktop"
|
|
substituteInPlace $out/share/applications/goxlr-utility.desktop \
|
|
--replace-fail /usr/bin $out/bin
|
|
|
|
completions_dir=$(dirname $(find target -name 'goxlr-client.bash' | head -n 1))
|
|
installShellCompletion --bash $completions_dir/goxlr-client.bash
|
|
installShellCompletion --fish $completions_dir/goxlr-client.fish
|
|
installShellCompletion --zsh $completions_dir/_goxlr-client
|
|
completions_dir=$(dirname $(find target -name 'goxlr-daemon.bash' | head -n 1))
|
|
installShellCompletion --bash $completions_dir/goxlr-daemon.bash
|
|
installShellCompletion --fish $completions_dir/goxlr-daemon.fish
|
|
installShellCompletion --zsh $completions_dir/_goxlr-daemon
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Unofficial GoXLR App replacement for Linux, Windows and MacOS";
|
|
homepage = "https://github.com/GoXLR-on-Linux/goxlr-utility";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ errnoh ];
|
|
};
|
|
}
|