2022-09-30 11:47:45 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "miniaudio";
|
2022-11-21 17:40:18 +00:00
|
|
|
version = "0.11.11";
|
2022-09-30 11:47:45 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "mackron";
|
|
|
|
repo = "miniaudio";
|
2022-11-21 17:40:18 +00:00
|
|
|
rev = "a0dc1037f99a643ff5fad7272cd3d6461f2d63fa";
|
|
|
|
# upstream does not maintain tags:
|
|
|
|
# https://github.com/mackron/miniaudio/issues/273#issuecomment-783861269
|
|
|
|
hash = "sha256-jOvDZk76hDvZ1RQ9O34kVeW0n95BT9+BE6fNhdekI5s=";
|
2022-09-30 11:47:45 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out
|
|
|
|
cp -r $src/* $out/
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
2022-11-21 17:40:18 +00:00
|
|
|
description = "Single header audio playback and capture library written in C";
|
2022-09-30 11:47:45 +00:00
|
|
|
homepage = "https://github.com/mackron/miniaudio";
|
2022-11-21 17:40:18 +00:00
|
|
|
changelog = "https://github.com/mackron/miniaudio/blob/${src.rev}/CHANGES.md";
|
|
|
|
license = with licenses; [ unlicense /* or */ mit0 ];
|
2022-09-30 11:47:45 +00:00
|
|
|
maintainers = [ maintainers.jansol ];
|
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|