2015-09-14 14:59:02 +02:00
|
|
|
{ lib, stdenv, fetchurl }:
|
2015-02-17 13:29:04 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "wavpack-${version}";
|
2015-06-11 23:42:14 +02:00
|
|
|
version = "4.75.0";
|
2015-02-17 13:29:04 +01:00
|
|
|
|
2015-05-04 10:09:42 +02:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2015-09-14 14:59:02 +02:00
|
|
|
patches = [
|
|
|
|
# backported from
|
|
|
|
# https://github.com/dbry/WavPack/commit/12867b33e2de3e95b88d7cb6f449ce0c5c87cdd5
|
|
|
|
./wavpack_clang.patch
|
|
|
|
];
|
|
|
|
|
2015-05-04 10:09:42 +02:00
|
|
|
preConfigure = ''
|
|
|
|
sed -i '2iexec_prefix=@exec_prefix@' wavpack.pc.in
|
|
|
|
'';
|
|
|
|
|
2015-09-14 14:59:02 +02:00
|
|
|
# --disable-asm is required for clang
|
|
|
|
# https://github.com/dbry/WavPack/issues/3
|
|
|
|
configureFlags = lib.optionalString stdenv.cc.isClang "--disable-asm";
|
|
|
|
|
2015-02-17 13:29:04 +01:00
|
|
|
src = fetchurl {
|
|
|
|
url = "http://www.wavpack.com/${name}.tar.bz2";
|
2015-06-11 23:42:14 +02:00
|
|
|
sha256 = "0bmgwcvch3cjcivk7pyasqysj0s81wkg40j3zfrcd7bl0qhmqgn6";
|
2015-02-17 13:29:04 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Hybrid audio compression format";
|
|
|
|
homepage = http://www.wavpack.com/;
|
|
|
|
license = licenses.bsd3;
|
2015-03-28 20:34:52 +01:00
|
|
|
platforms = platforms.unix;
|
2015-02-17 13:29:04 +01:00
|
|
|
maintainers = with maintainers; [ codyopel ];
|
|
|
|
};
|
|
|
|
}
|