2013-06-04 09:35:33 +00:00
|
|
|
{ stdenv, fetchurl, cmake }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2015-09-24 23:14:58 +00:00
|
|
|
name = "soxr-0.1.2";
|
2013-06-04 09:35:33 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://sourceforge/soxr/${name}-Source.tar.xz";
|
2015-09-24 23:14:58 +00:00
|
|
|
sha256 = "0xf2w3piwz9gfr1xqyrj4k685q5dy53kq3igv663i4f4y4sg9rjl";
|
2013-06-04 09:35:33 +00:00
|
|
|
};
|
|
|
|
|
2015-10-07 21:12:30 +00:00
|
|
|
outputs = [ "out" "doc" ]; # headers are just two and very small
|
|
|
|
|
2015-03-27 04:59:16 +00:00
|
|
|
preConfigure = if stdenv.isDarwin then ''
|
|
|
|
export DYLD_LIBRARY_PATH="$DYLD_LIBRARY_PATH:"`pwd`/build/src
|
|
|
|
'' else ''
|
|
|
|
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:"`pwd`/build/src
|
|
|
|
'';
|
2013-06-04 09:35:33 +00:00
|
|
|
|
2015-09-24 23:14:58 +00:00
|
|
|
nativeBuildInputs = [ cmake ];
|
2015-10-03 11:33:13 +00:00
|
|
|
buildInputs = [ (stdenv.cc.cc.lib or null) ];
|
2015-04-20 18:26:09 +00:00
|
|
|
# outputs TODO: gcc.lib might become a problem;
|
|
|
|
# here -out/lib/*.a got found and -lib/lib/*.so didn't
|
2013-06-04 09:35:33 +00:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "An audio resampling library";
|
|
|
|
homepage = http://soxr.sourceforge.net;
|
2014-06-19 04:19:00 +00:00
|
|
|
license = stdenv.lib.licenses.lgpl21Plus;
|
2013-06-04 09:35:33 +00:00
|
|
|
};
|
|
|
|
}
|