2018-01-09 10:05:11 -08:00
|
|
|
{ stdenv, fetchurl, libogg, pkgconfig, fetchpatch }:
|
2005-01-19 13:48:45 -08:00
|
|
|
|
2014-09-24 06:07:18 -07:00
|
|
|
stdenv.mkDerivation rec {
|
2018-03-17 11:17:56 -07:00
|
|
|
name = "libvorbis-1.3.6";
|
2012-08-23 12:01:00 -07:00
|
|
|
|
2005-01-19 13:48:45 -08:00
|
|
|
src = fetchurl {
|
2012-02-08 11:54:16 -08:00
|
|
|
url = "http://downloads.xiph.org/releases/vorbis/${name}.tar.xz";
|
2018-03-17 11:17:56 -07:00
|
|
|
sha256 = "05dlzjkdpv46zb837wysxqyn8l636x3dw8v8ymlrwz2fg1dbn05g";
|
2005-01-19 13:48:45 -08:00
|
|
|
};
|
2009-01-20 01:50:05 -08:00
|
|
|
|
2016-08-28 17:30:01 -07:00
|
|
|
outputs = [ "out" "dev" "doc" ];
|
2014-06-22 03:39:07 -07:00
|
|
|
|
2018-01-09 10:05:11 -08:00
|
|
|
patches = [
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://gitlab.xiph.org/xiph/vorbis/uploads/a68cf70fa10c8081a633f77b5c6576b7/0001-CVE-2017-14160-make-sure-we-don-t-overflow.patch";
|
|
|
|
sha256 = "0v21p59cb3z77ch1v6q5dcrd733h91f3m8ifnd7kkkr8gzn17d5x";
|
|
|
|
name = "CVE-2017-14160";
|
|
|
|
})
|
2018-06-17 02:43:27 -07:00
|
|
|
(fetchpatch {
|
|
|
|
url = "https://gitlab.xiph.org/xiph/vorbis/commit/112d3bd0aaa.diff";
|
|
|
|
sha256 = "1k77y3q36npy8mkkz40f6cb46l2ldrwyrd191m29s8rnbhnafdf7";
|
|
|
|
name = "CVE-2018-10392.patch";
|
|
|
|
})
|
2018-01-09 10:05:11 -08:00
|
|
|
];
|
2010-08-01 07:33:43 -07:00
|
|
|
|
2015-05-01 22:02:24 -07:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
2014-08-26 16:14:09 -07:00
|
|
|
propagatedBuildInputs = [ libogg ];
|
2012-08-23 12:01:00 -07:00
|
|
|
|
2014-06-12 15:53:21 -07:00
|
|
|
doCheck = true;
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2018-01-05 11:42:46 -08:00
|
|
|
homepage = https://xiph.org/vorbis/;
|
2014-06-12 15:53:21 -07:00
|
|
|
license = licenses.bsd3;
|
2015-12-05 13:41:25 -08:00
|
|
|
maintainers = [ maintainers.ehmry ];
|
2014-06-12 15:53:21 -07:00
|
|
|
platforms = platforms.all;
|
2010-08-01 07:33:43 -07:00
|
|
|
};
|
2005-01-19 13:48:45 -08:00
|
|
|
}
|