nixpkgs/pkgs/development/libraries/miniaudio/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

30 lines
721 B
Nix
Raw Normal View History

2022-09-19 23:33:52 +00:00
{ lib
, stdenv
, fetchFromGitHub
}:
stdenv.mkDerivation rec {
pname = "miniaudio";
2023-06-24 17:25:58 +00:00
version = "0.11.17";
2022-09-19 23:33:52 +00:00
src = fetchFromGitHub {
owner = "mackron";
repo = "miniaudio";
rev = version;
2023-06-24 17:25:58 +00:00
hash = "sha256-nPQ53+9CDEn91LZgF5RkVur+XckTDcS38FHomPXbtMI=";
2022-09-19 23:33:52 +00:00
};
installPhase = ''
mkdir -p $out
cp -r $src/* $out/
'';
meta = with lib; {
description = "Single header audio playback and capture library written in C";
2022-09-19 23:33:52 +00:00
homepage = "https://github.com/mackron/miniaudio";
changelog = "https://github.com/mackron/miniaudio/blob/${src.rev}/CHANGES.md";
license = with licenses; [ unlicense /* or */ mit0 ];
2022-09-19 23:33:52 +00:00
maintainers = [ maintainers.jansol ];
platforms = platforms.all;
};
}