Merge pull request #329823 from ExpidusOS/fix/pkgsllvm/elfutils
[NixPkgs.git] / pkgs / by-name / ti / tinyalsa / package.nix
blobcae778227c7312d5628ef1ac68b81c9a3949ba01
1 { lib
2 , stdenv
3 , fetchFromGitHub
4 , cmake
5 }:
7 stdenv.mkDerivation rec {
8   pname = "tinyalsa";
9   version = "unstable-2022-06-05";
11   src = fetchFromGitHub {
12     owner = "tinyalsa";
13     repo = "tinyalsa";
14     rev = "3d70d227e7dfd1be6f8f420a5aae164a2b4126e0";
15     hash = "sha256-RHeF3VShy+LYFtJK+AEU7swIr5/rnpg2fdllnH9cFCk=";
16   };
18   nativeBuildInputs = [
19     cmake
20   ];
22   cmakeFlags = [
23     "-DTINYALSA_USES_PLUGINS=ON"
24   ];
26   env.NIX_CFLAGS_COMPILE = toString [
27     "-Wno-error=sign-compare"
28   ];
30   meta = with lib; {
31     homepage = "https://github.com/tinyalsa/tinyalsa";
32     description = "Tiny library to interface with ALSA in the Linux kernel";
33     license = licenses.mit;
34     maintainers = with maintainers; [ AndersonTorres ];
35     platforms = with platforms; linux;
36   };