3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/misc/audio/soxr/default.nix
2015-04-21 09:59:37 +02:00

27 lines
746 B
Nix

{ stdenv, fetchurl, cmake }:
stdenv.mkDerivation rec {
name = "soxr-0.1.1";
src = fetchurl {
url = "mirror://sourceforge/soxr/${name}-Source.tar.xz";
sha256 = "1hmadwqfpg15vhwq9pa1sl5xslibrjpk6hpq2s9hfmx1s5l6ihfw";
};
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
'';
buildInputs = [ cmake (stdenv.cc.cc.lib or null) ];
# outputs TODO: gcc.lib might become a problem;
# here -out/lib/*.a got found and -lib/lib/*.so didn't
meta = {
description = "An audio resampling library";
homepage = http://soxr.sourceforge.net;
license = stdenv.lib.licenses.lgpl21Plus;
};
}