libsndfile: enable tests

This commit is contained in:
Robert Scott 2023-08-20 20:01:12 +01:00
parent 40c205bbeb
commit 24a612e4e3

View file

@ -33,6 +33,14 @@ stdenv.mkDerivation rec {
# Needed on Darwin.
NIX_CFLAGS_LINK = "-logg -lvorbis";
doCheck = true;
preCheck = ''
patchShebangs tests/test_wrapper.sh tests/pedantic-header-test.sh
substituteInPlace tests/test_wrapper.sh \
--replace '/usr/bin/env' "$(type -P env)"
'';
meta = with lib; {
description = "A C library for reading and writing files containing sampled sound";
homepage = "https://libsndfile.github.io/libsndfile/";