2013-06-04 11:35:33 +02:00
|
|
|
{ stdenv, fetchurl, cmake }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2018-03-09 22:18:09 +01:00
|
|
|
name = "soxr-0.1.3";
|
2013-06-04 11:35:33 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://sourceforge/soxr/${name}-Source.tar.xz";
|
2018-03-09 22:18:09 +01:00
|
|
|
sha256 = "12aql6svkplxq5fjycar18863hcq84c5kx8g6f4rj0lcvigw24di";
|
2013-06-04 11:35:33 +02:00
|
|
|
};
|
|
|
|
|
2015-10-07 23:12:30 +02:00
|
|
|
outputs = [ "out" "doc" ]; # headers are just two and very small
|
|
|
|
|
2015-03-27 05:59:16 +01: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 11:35:33 +02:00
|
|
|
|
2015-09-25 01:14:58 +02:00
|
|
|
nativeBuildInputs = [ cmake ];
|
2013-06-04 11:35:33 +02:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "An audio resampling library";
|
|
|
|
homepage = http://soxr.sourceforge.net;
|
2014-06-19 06:19:00 +02:00
|
|
|
license = stdenv.lib.licenses.lgpl21Plus;
|
2016-08-02 19:50:55 +02:00
|
|
|
platforms = stdenv.lib.platforms.unix;
|
2013-06-04 11:35:33 +02:00
|
|
|
};
|
|
|
|
}
|