at 23.05-pre 37 lines 777 B view raw
1{ lib 2, stdenv 3, fetchFromGitHub 4, cmake 5}: 6 7stdenv.mkDerivation rec { 8 pname = "tinyalsa"; 9 version = "unstable-2022-06-05"; 10 11 src = fetchFromGitHub { 12 owner = "tinyalsa"; 13 repo = "tinyalsa"; 14 rev = "3d70d227e7dfd1be6f8f420a5aae164a2b4126e0"; 15 hash = "sha256-RHeF3VShy+LYFtJK+AEU7swIr5/rnpg2fdllnH9cFCk="; 16 }; 17 18 nativeBuildInputs = [ 19 cmake 20 ]; 21 22 cmakeFlags = [ 23 "-DTINYALSA_USES_PLUGINS=ON" 24 ]; 25 26 NIX_CFLAGS_COMPILE = toString [ 27 "-Wno-error=sign-compare" 28 ]; 29 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 }; 37}