diff --git a/pkgs/by-name/ti/tinyalsa/package.nix b/pkgs/by-name/ti/tinyalsa/package.nix index f90680f8f41b..157a104b223a 100644 --- a/pkgs/by-name/ti/tinyalsa/package.nix +++ b/pkgs/by-name/ti/tinyalsa/package.nix @@ -1,43 +1,49 @@ { lib, stdenv, + testers, fetchFromGitHub, - cmake, + meson, + ninja, }: -stdenv.mkDerivation { +stdenv.mkDerivation (finalAttrs: { pname = "tinyalsa"; - version = "unstable-2022-06-05"; + version = "2.0.0-unstable-2026-07-27"; src = fetchFromGitHub { owner = "tinyalsa"; repo = "tinyalsa"; - rev = "3d70d227e7dfd1be6f8f420a5aae164a2b4126e0"; - hash = "sha256-RHeF3VShy+LYFtJK+AEU7swIr5/rnpg2fdllnH9cFCk="; + rev = "9fab97ca07184371ecad81154d1dadb09d0fa7cf"; + hash = "sha256-+/wz0pwyF1kulUA5kjFGVOwbSkunEU+WzsZf/UsCEVk="; }; + separateDebugInfo = true; + strictDeps = true; + __structuredAttrs = true; + + outputs = [ + "out" + "dev" + "bin" + ]; + nativeBuildInputs = [ - cmake + meson + ninja ]; - cmakeFlags = [ - "-DTINYALSA_USES_PLUGINS=ON" - ]; - - env.NIX_CFLAGS_COMPILE = toString [ - "-Wno-error=sign-compare" - ]; - - postPatch = '' - substituteInPlace CMakeLists.txt \ - --replace-fail "cmake_minimum_required(VERSION 3.1)" "cmake_minimum_required(VERSION 3.10)" - ''; + passthru.tests.pkg-config = testers.hasPkgConfigModules { + package = finalAttrs.finalPackage; + versionCheck = false; + }; meta = { homepage = "https://github.com/tinyalsa/tinyalsa"; description = "Tiny library to interface with ALSA in the Linux kernel"; license = lib.licenses.mit; + pkgConfigModules = [ "tinyalsa" ]; maintainers = [ ]; platforms = with lib.platforms; linux; }; -} +})