2018-01-09 18:05:11 +00:00
|
|
|
{ stdenv, fetchurl, libogg, pkgconfig, fetchpatch }:
|
2005-01-19 21:48:45 +00:00
|
|
|
|
2014-09-24 14:07:18 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2018-03-17 18:17:56 +00:00
|
|
|
name = "libvorbis-1.3.6";
|
2012-08-23 20:01:00 +01:00
|
|
|
|
2005-01-19 21:48:45 +00:00
|
|
|
src = fetchurl {
|
2012-02-08 19:54:16 +00:00
|
|
|
url = "http://downloads.xiph.org/releases/vorbis/${name}.tar.xz";
|
2018-03-17 18:17:56 +00:00
|
|
|
sha256 = "05dlzjkdpv46zb837wysxqyn8l636x3dw8v8ymlrwz2fg1dbn05g";
|
2005-01-19 21:48:45 +00:00
|
|
|
};
|
2009-01-20 09:50:05 +00:00
|
|
|
|
2016-08-29 01:30:01 +01:00
|
|
|
outputs = [ "out" "dev" "doc" ];
|
2014-06-22 11:39:07 +01:00
|
|
|
|
2018-01-09 18:05:11 +00:00
|
|
|
patches = [
|
|
|
|
(fetchpatch {
|
2020-05-01 02:21:03 +01:00
|
|
|
url = "https://gitlab.xiph.org/xiph/vorbis/commit/018ca26dece618457dd13585cad52941193c4a25.patch";
|
|
|
|
sha256 = "18k4vp0nmrxxpis641ylnw6dgwxrymh5bf74njr6v8dizmmz1bkj";
|
2020-03-14 07:34:13 +00:00
|
|
|
name = "CVE-2017-14160+CVE-2018-10393.patch";
|
2018-01-09 18:05:11 +00:00
|
|
|
})
|
2018-06-17 10:43:27 +01:00
|
|
|
(fetchpatch {
|
2020-05-01 02:21:03 +01:00
|
|
|
url = "https://gitlab.xiph.org/xiph/vorbis/commit/112d3bd0aaacad51305e1464d4b381dabad0e88b.diff";
|
2018-06-17 10:43:27 +01:00
|
|
|
sha256 = "1k77y3q36npy8mkkz40f6cb46l2ldrwyrd191m29s8rnbhnafdf7";
|
|
|
|
name = "CVE-2018-10392.patch";
|
|
|
|
})
|
2018-01-09 18:05:11 +00:00
|
|
|
];
|
2010-08-01 15:33:43 +01:00
|
|
|
|
2015-05-02 06:02:24 +01:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
2014-08-27 00:14:09 +01:00
|
|
|
propagatedBuildInputs = [ libogg ];
|
2012-08-23 20:01:00 +01:00
|
|
|
|
2014-06-12 23:53:21 +01:00
|
|
|
doCheck = true;
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2019-11-17 08:43:55 +00:00
|
|
|
description = "Vorbis audio compression reference implementation";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://xiph.org/vorbis/";
|
2014-06-12 23:53:21 +01:00
|
|
|
license = licenses.bsd3;
|
2015-12-05 21:41:25 +00:00
|
|
|
maintainers = [ maintainers.ehmry ];
|
2014-06-12 23:53:21 +01:00
|
|
|
platforms = platforms.all;
|
2010-08-01 15:33:43 +01:00
|
|
|
};
|
2005-01-19 21:48:45 +00:00
|
|
|
}
|