depot/third_party/nixpkgs/pkgs/development/pure-modules/audio/default.nix
Default email 81047829ea Project import generated by Copybara.
GitOrigin-RevId: 48d63e924a2666baf37f4f14a18f19347fbd54a2
2022-02-10 15:34:41 -05:00

24 lines
855 B
Nix

{ lib, stdenv, fetchurl, pkg-config, pure, portaudio, fftw, libsndfile, libsamplerate }:
stdenv.mkDerivation rec {
pname = "pure-audio";
version = "0.6";
src = fetchurl {
url = "https://bitbucket.org/purelang/pure-lang/downloads/pure-audio-${version}.tar.gz";
sha256 = "c1f2a5da73983efb5a54f86d57ba93713ebed20ff0c72de9b3467f10f2904ee0";
};
nativeBuildInputs = [ pkg-config ];
propagatedBuildInputs = [ pure portaudio fftw libsndfile libsamplerate ];
makeFlags = [ "libdir=$(out)/lib" "prefix=$(out)/" ];
setupHook = ../generic-setup-hook.sh;
meta = {
description = "A digital audio interface for the Pure programming language";
homepage = "http://puredocs.bitbucket.org/pure-audio.html";
license = lib.licenses.bsd3;
platforms = lib.platforms.linux;
maintainers = with lib.maintainers; [ asppsa ];
};
}