Files
Ihar HrachyshkaandWolfgang Walther 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

44 lines
909 B
Nix

{
lib,
stdenv,
fetchFromGitHub,
cmake,
}:
stdenv.mkDerivation {
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"
];
postPatch = ''
substituteInPlace CMakeLists.txt \
--replace-fail "cmake_minimum_required(VERSION 3.1)" "cmake_minimum_required(VERSION 3.10)"
'';
meta = {
homepage = "https://github.com/tinyalsa/tinyalsa";
description = "Tiny library to interface with ALSA in the Linux kernel";
license = lib.licenses.mit;
maintainers = [ ];
platforms = with lib.platforms; linux;
};
}