{ autoreconfHook, fetchFromGitHub, lib, stdenv, testers, unstableGitUpdater, }: stdenv.mkDerivation (finalAttrs: { pname = "alac"; version = "0.0.7-unstable-2024-10-16"; outputs = [ "out" "dev" ]; src = fetchFromGitHub { owner = "mikebrady"; repo = "alac"; rev = "1832544d27d01335d823d639b176d1cae25ecfd4"; hash = "sha256-xRWDeqyJ/BEaSWVlDXgaKIKJuBwM8kJDIATVTVaMn2k="; }; nativeBuildInputs = [ autoreconfHook ]; # error: 'TARGET_OS_MAC' is not defined, evaluates to 0 env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.hostPlatform.isDarwin "-DTARGET_OS_MAC"; passthru = { updateScript = unstableGitUpdater { }; tests.pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage; }; meta = { description = "Apple Lossless Codec and Utility with Autotools"; homepage = "https://github.com/mikebrady/alac"; license = lib.licenses.asl20; pkgConfigModules = [ "alac" ]; platforms = lib.platforms.all; maintainers = with lib.maintainers; [ jopejoe1 ]; }; })