nixpkgs/pkgs/os-specific/linux/tinyalsa/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

38 lines
777 B
Nix
Raw Normal View History

2022-06-17 22:44:04 +00:00
{ lib
, stdenv
, fetchFromGitHub
, cmake
}:
stdenv.mkDerivation rec {
pname = "tinyalsa";
2022-06-18 01:29:11 +00:00
version = "unstable-2022-06-05";
2022-06-17 22:44:04 +00:00
src = fetchFromGitHub {
owner = "tinyalsa";
repo = "tinyalsa";
2022-06-18 01:29:11 +00:00
rev = "3d70d227e7dfd1be6f8f420a5aae164a2b4126e0";
hash = "sha256-RHeF3VShy+LYFtJK+AEU7swIr5/rnpg2fdllnH9cFCk=";
2022-06-17 22:44:04 +00:00
};
nativeBuildInputs = [
cmake
];
cmakeFlags = [
"-DTINYALSA_USES_PLUGINS=ON"
];
NIX_CFLAGS_COMPILE = toString [
2022-06-18 01:29:11 +00:00
"-Wno-error=sign-compare"
2022-06-17 22:44:04 +00:00
];
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;
};
}