From e371c0c30042873f5bcbc91b0a1196daab3d8f93 Mon Sep 17 00:00:00 2001 From: Robert Scott Date: Sun, 20 Aug 2023 20:01:32 +0100 Subject: [PATCH] libsndfile: add some key reverse-dependencies to passthru.tests --- .../libraries/libsndfile/default.nix | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/pkgs/development/libraries/libsndfile/default.nix b/pkgs/development/libraries/libsndfile/default.nix index 73faa5e843a0..02dbd633281c 100644 --- a/pkgs/development/libraries/libsndfile/default.nix +++ b/pkgs/development/libraries/libsndfile/default.nix @@ -1,6 +1,15 @@ { lib, stdenv, fetchFromGitHub, autoreconfHook, autogen, pkg-config, python3 , flac, lame, libmpg123, libogg, libopus, libvorbis , alsa-lib, Carbon, AudioToolbox + +# for passthru.tests +, audacity +, freeswitch +, gst_all_1 +, libsamplerate +, moc +, pipewire +, pulseaudio }: stdenv.mkDerivation rec { @@ -41,6 +50,21 @@ stdenv.mkDerivation rec { --replace '/usr/bin/env' "$(type -P env)" ''; + passthru.tests = { + inherit + audacity + freeswitch + libsamplerate + moc + pipewire + pulseaudio; + inherit (python3.pkgs) + soundfile + wavefile; + inherit (gst_all_1) gst-plugins-bad; + lame = (lame.override { sndfileFileIOSupport = true; }); + }; + meta = with lib; { description = "A C library for reading and writing files containing sampled sound"; homepage = "https://libsndfile.github.io/libsndfile/";