asahi-audio: init at 3.4 (#419428)

authored by Florian Klink and committed by GitHub da7cdb5c 34c1de60

+78
+78
pkgs/by-name/as/asahi-audio/package.nix
··· 1 + { 2 + lib, 3 + stdenvNoCC, 4 + fetchFromGitHub, 5 + lsp-plugins, 6 + bankstown-lv2, 7 + triforce-lv2, 8 + nix-update-script, 9 + }: 10 + stdenvNoCC.mkDerivation (finalAttrs: { 11 + pname = "asahi-audio"; 12 + version = "3.4"; 13 + 14 + src = fetchFromGitHub { 15 + owner = "AsahiLinux"; 16 + repo = "asahi-audio"; 17 + tag = "v${finalAttrs.version}"; 18 + hash = "sha256-7AuPkR/M1a4zB9+dJuOuv9uTp+kIqPlxVOXipsyGGz8="; 19 + }; 20 + 21 + makeFlags = [ 22 + "DESTDIR=$(out)" 23 + "DATA_DIR=share" 24 + ]; 25 + 26 + fixupPhase = '' 27 + runHook preFixup 28 + 29 + for config_file in $(find $out -type f -not -name '*.wav') ; do 30 + substituteInPlace "$config_file" --replace-warn "/usr" "$out" 31 + done 32 + 33 + runHook postFixup 34 + ''; 35 + 36 + passthru = { 37 + updateScript = nix-update-script { }; 38 + requiredLv2Packages = [ 39 + lsp-plugins 40 + bankstown-lv2 41 + triforce-lv2 42 + ]; 43 + }; 44 + 45 + meta = { 46 + description = "Linux userspace audio configuration for Apple Silicon Macs"; 47 + longDescription = '' 48 + This package contains DSP configuration files for Apple Silicon 49 + Macs supported by the Asahi Linux project. The goal is to make 50 + the Asahi Linux audio experience better than macOS, and in doing 51 + so demonstrate that desktop Linux audio can be made fit for 52 + purpose with a little bit of effort. 53 + 54 + Currently Supported Devices (speakers) 55 + - MacBook Air (13-inch, M1, 2020) 56 + - MacBook Air (13-inch, M2, 2022) 57 + - MacBook Air (15-inch, M2, 2023) 58 + - MacBook Pro (13-inch, M1/M2, 2020/2022) 59 + - MacBook Pro (14-inch, M1/M2 Pro/Max, 2021/2023) 60 + - MacBook Pro (16-inch, M1/M2 Pro/Max, 2021/2023) 61 + - Mac mini (M1/M2/M2 Pro, 2020/2023) 62 + - Mac Studio (M1/M2 Max/Ultra, 2022/2023) 63 + 64 + Currently Supported Devices (microphones) 65 + - MacBook Air (13-inch, M1, 2020) 66 + - MacBook Air (13-inch, M2, 2022) 67 + - MacBook Air (15-inch, M2, 2023) 68 + - MacBook Pro (13-inch, M1/M2, 2020/2022) 69 + - MacBook Pro (14-inch, M1/M2 Pro/Max, 2021/2023) 70 + - MacBook Pro (16-inch, M1/M2 Pro/Max, 2021/2023) 71 + ''; 72 + homepage = "https://github.com/AsahiLinux/asahi-audio"; 73 + changelog = "https://github.com/AsahiLinux/asahi-audio/releases/tag/v${finalAttrs.version}"; 74 + license = lib.licenses.mit; 75 + maintainers = with lib.maintainers; [ normalcea ]; 76 + platforms = [ "aarch64-linux" ]; 77 + }; 78 + })