tinyalsa: init at 2.0.0

This commit is contained in:
AndersonTorres 2022-06-17 19:44:04 -03:00
parent 9877c29734
commit 6e73e6e668
2 changed files with 39 additions and 0 deletions

View File

@ -0,0 +1,37 @@
{ lib
, stdenv
, fetchFromGitHub
, cmake
}:
stdenv.mkDerivation rec {
pname = "tinyalsa";
version = "2.0.0";
src = fetchFromGitHub {
owner = "tinyalsa";
repo = "tinyalsa";
rev = "v${version}";
hash = "sha256-WFJbew6ApB9InKN1SyRkbVoFlBCFm5uYzazdtsaHM90=";
};
nativeBuildInputs = [
cmake
];
cmakeFlags = [
"-DTINYALSA_USES_PLUGINS=ON"
];
NIX_CFLAGS_COMPILE = toString [
"-Wno-error=stringop-truncation"
];
meta = with lib; {
homepage = "https://github.com/tinyalsa/tinyalsa";
description = "Tiny library to interface with ALSA in the Linux kernel";
license = licenses.mit;
maintainers = with maintainers; [ AndersonTorres ];
platforms = with platforms; linux;
};
}

View File

@ -22916,6 +22916,8 @@ with pkgs;
alertmanager-irc-relay = callPackage ../servers/monitoring/alertmanager-irc-relay { };
tinyalsa = callPackage ../os-specific/linux/tinyalsa { };
alsa-firmware = callPackage ../os-specific/linux/alsa-project/alsa-firmware { };
alsa-lib = callPackage ../os-specific/linux/alsa-project/alsa-lib { };
alsa-oss = callPackage ../os-specific/linux/alsa-project/alsa-oss { };