nixpkgs/pkgs/development/libraries/snack/default.nix
Tuomas Tynkkynen a7c31ce165 snack: Mark broken
Besides the hardeningDisable I added, something else is broken.

gcc -c -O -fPIC -DUSE_TCL_STUBS -DUSE_TK_STUBS -DOSS  -I/nix/store/q2k3anmbnwklaxih3brk9g6mxzjv155z-tcl-8.6.6/include -I/tmp/nix-build-tcl-8.6.6.drv-0/tcl8.6.6/generic -I/tmp/nix-build-tk-8.6.6.drv-0/tk8.6.6/generic   -DTCL_81_API -I./../generic -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1  ./../generic/jkFormatMP3.c
./../generic/jkFormatMP3.c:34:26: error: expected declaration specifiers or '...' before '(' token
 #define roundf(x) (floor((x)+(float )0.5f))
                          ^
2016-12-05 02:09:18 +02:00

35 lines
843 B
Nix

# alsaLib vorbis-tools python can be made optional
{ stdenv, fetchurl, python, tcl, tk, vorbis-tools, pkgconfig, xlibsWrapper }:
stdenv.mkDerivation {
name = "snack-2.2.10";
src = fetchurl {
url = http://www.speech.kth.se/snack/dist/snack2.2.10.tar.gz;
sha256 = "07p89jv9qnjqkszws9sssq93ayvwpdnkcxrvyicbm4mb8x2pdzjb";
};
configureFlags = "--with-tcl=${tcl}/lib --with-tk=${tk}/lib";
postUnpack = ''sourceRoot="$sourceRoot/unix"'';
buildInputs = [ python tcl tk vorbis-tools pkgconfig xlibsWrapper ];
hardeningDisable = [ "format" ];
postInstall = "aoeu";
installPhase = ''
mkdir -p $out
make install DESTDIR="$out"
'';
meta = {
description = "The Snack Sound Toolkit (Tcl)";
homepage = http://www.speech.kth.se/snack/;
license = stdenv.lib.licenses.gpl2;
broken = true;
};
}