From 95b21947256640b4ac625e1650d0d7ff8be881fb Mon Sep 17 00:00:00 2001 From: Jan Solanti Date: Tue, 20 Sep 2022 02:33:52 +0300 Subject: [PATCH] miniaudio: init at unstable-2020-04-20 --- .../libraries/miniaudio/default.nix | 28 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 30 insertions(+) create mode 100644 pkgs/development/libraries/miniaudio/default.nix diff --git a/pkgs/development/libraries/miniaudio/default.nix b/pkgs/development/libraries/miniaudio/default.nix new file mode 100644 index 000000000000..3b8be7b149c6 --- /dev/null +++ b/pkgs/development/libraries/miniaudio/default.nix @@ -0,0 +1,28 @@ +{ lib +, stdenv +, fetchFromGitHub +}: +stdenv.mkDerivation rec { + pname = "miniaudio"; + version = "unstable-2020-04-20"; + + src = fetchFromGitHub { + owner = "mackron"; + repo = "miniaudio"; + rev = "4d813cfe23c28db165cce6785419fee9d2399766"; + sha256 = "sha256-efZLZTmkLtvcysd25olDE/QqunU5YTYwSVmUZXPKGIY="; + }; + + 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"; + license = licenses.unlicense; + maintainers = [ maintainers.jansol ]; + platforms = platforms.all; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index b104897a0f1b..34f0ba954b45 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -20727,6 +20727,8 @@ with pkgs; mimalloc = callPackage ../development/libraries/mimalloc { }; + miniaudio = callPackage ../development/libraries/miniaudio { }; + miniz = callPackage ../development/libraries/miniz { }; minizip = callPackage ../development/libraries/minizip { };