mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-21 08:01:31 +00:00
{spandsp,spandsp3}: Don't install generated test data (#481283)
This commit is contained in:
@@ -45,12 +45,18 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
|
||||
postPatch = ''
|
||||
patchShebangs autogen.sh
|
||||
|
||||
# pkg-config? What's that?
|
||||
# Actually *check* the value given for --{en,dis}able-tests, not just whether the option was passed
|
||||
''
|
||||
# pkg-config? What's that?
|
||||
# Actually *check* the value given for --{en,dis}able-tests, not just whether the option was passed
|
||||
+ ''
|
||||
substituteInPlace configure.ac \
|
||||
--replace-fail '$xml2_include_dir /usr/include /usr/local/include /usr/include/libxml2 /usr/local/include/libxml2' '$xml2_include_dir ${lib.getDev libxml2}/include ${lib.getDev libxml2}/include/libxml2 /usr/local/include/libxml2' \
|
||||
--replace-fail 'if test -n "$enable_tests" ; then' 'if test "$enable_tests" = "yes" ; then'
|
||||
''
|
||||
# Don't install generated test data
|
||||
+ ''
|
||||
substituteInPlace test-data/{etsi,itu}/fax/Makefile.am \
|
||||
--replace-fail 'nobase_data_DATA' 'noinst_DATA'
|
||||
'';
|
||||
|
||||
outputs = [
|
||||
|
||||
Reference in New Issue
Block a user