depot/third_party/nixpkgs/pkgs/development/libraries/miniaudio/default.nix
Default email 504525a148 Project import generated by Copybara.
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
2024-01-02 12:29:13 +01:00

29 lines
721 B
Nix

{ lib
, stdenv
, fetchFromGitHub
}:
stdenv.mkDerivation rec {
pname = "miniaudio";
version = "0.11.21";
src = fetchFromGitHub {
owner = "mackron";
repo = "miniaudio";
rev = version;
hash = "sha256-EOIykyUXYcdDeTYb/Mf3xgcxEpKS4us213tEFwm5mEI=";
};
installPhase = ''
mkdir -p $out
cp -r $src/* $out/
'';
meta = with lib; {
description = "Single header audio playback and capture library written in C";
homepage = "https://github.com/mackron/miniaudio";
changelog = "https://github.com/mackron/miniaudio/blob/${src.rev}/CHANGES.md";
license = with licenses; [ unlicense /* or */ mit0 ];
maintainers = [ maintainers.jansol ];
platforms = platforms.all;
};
}