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