Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / libraries / miniaudio / default.nix
blob2df349b83dcc69bd071105f332261a3a2dff3313
1 { lib
2 , stdenv
3 , fetchFromGitHub
4 }:
5 stdenv.mkDerivation rec {
6   pname = "miniaudio";
7   version = "0.11.18";
9   src = fetchFromGitHub {
10     owner = "mackron";
11     repo = "miniaudio";
12     rev = version;
13     hash = "sha256-y0o33hnKoZ8gWWFNFIOUJcXMWENaYzMLZzeTOoVETOY=";
14   };
16   installPhase = ''
17     mkdir -p $out
18     cp -r $src/* $out/
19   '';
21   meta = with lib; {
22     description = "Single header audio playback and capture library written in C";
23     homepage = "https://github.com/mackron/miniaudio";
24     changelog = "https://github.com/mackron/miniaudio/blob/${src.rev}/CHANGES.md";
25     license = with licenses; [ unlicense /* or */ mit0 ];
26     maintainers = [ maintainers.jansol ];
27     platforms = platforms.all;
28   };