depot/third_party/nixpkgs/pkgs/development/libraries/miniaudio/default.nix
Default email 94427deb9d Project import generated by Copybara.
GitOrigin-RevId: f91ee3065de91a3531329a674a45ddcb3467a650
2023-05-24 16:37:59 +03:00

29 lines
721 B
Nix

{ lib
, stdenv
, fetchFromGitHub
}:
stdenv.mkDerivation rec {
pname = "miniaudio";
version = "0.11.16";
src = fetchFromGitHub {
owner = "mackron";
repo = "miniaudio";
rev = version;
hash = "sha256-POe/dYPJ25RKNGIhaLoqxm9JJ08MrTyHVN4NmaGOdwM=";
};
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;
};
}