2015-09-14 13:59:02 +01:00
|
|
|
{ lib, stdenv, fetchurl }:
|
2015-02-17 12:29:04 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "wavpack-${version}";
|
2015-06-11 22:42:14 +01:00
|
|
|
version = "4.75.0";
|
2015-02-17 12:29:04 +00:00
|
|
|
|
2015-05-04 09:09:42 +01:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2015-09-14 13:59:02 +01:00
|
|
|
patches = [
|
|
|
|
# backported from
|
|
|
|
# https://github.com/dbry/WavPack/commit/12867b33e2de3e95b88d7cb6f449ce0c5c87cdd5
|
|
|
|
./wavpack_clang.patch
|
|
|
|
];
|
|
|
|
|
2015-05-04 09:09:42 +01:00
|
|
|
preConfigure = ''
|
|
|
|
sed -i '2iexec_prefix=@exec_prefix@' wavpack.pc.in
|
|
|
|
'';
|
|
|
|
|
2015-09-14 13:59:02 +01: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 12:29:04 +00:00
|
|
|
src = fetchurl {
|
|
|
|
url = "http://www.wavpack.com/${name}.tar.bz2";
|
2015-06-11 22:42:14 +01:00
|
|
|
sha256 = "0bmgwcvch3cjcivk7pyasqysj0s81wkg40j3zfrcd7bl0qhmqgn6";
|
2015-02-17 12:29:04 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Hybrid audio compression format";
|
|
|
|
homepage = http://www.wavpack.com/;
|
|
|
|
license = licenses.bsd3;
|
2015-03-28 19:34:52 +00:00
|
|
|
platforms = platforms.unix;
|
2015-02-17 12:29:04 +00:00
|
|
|
maintainers = with maintainers; [ codyopel ];
|
|
|
|
};
|
|
|
|
}
|