depot/pkgs/by-name/ti/tinyalsa/package.nix
Luke Granger-Brown 57725ef3ec Squashed 'third_party/nixpkgs/' content from commit 76612b17c0ce
git-subtree-dir: third_party/nixpkgs
git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
2024-11-10 23:59:47 +00:00

37 lines
781 B
Nix

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