2021-05-08 18:12:40 +01:00
|
|
|
{ lib, stdenv, fetchurl, fetchpatch, libogg }:
|
2009-02-09 16:51:03 +00:00
|
|
|
|
2012-08-25 01:43:48 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2021-05-08 18:12:40 +01:00
|
|
|
pname = "flac";
|
|
|
|
version = "1.3.3";
|
2012-08-23 18:57:31 +01:00
|
|
|
|
2009-02-09 16:51:03 +00:00
|
|
|
src = fetchurl {
|
2021-05-08 18:12:40 +01:00
|
|
|
url = "http://downloads.xiph.org/releases/flac/${pname}-${version}.tar.xz";
|
2019-08-19 08:08:13 +01:00
|
|
|
sha256 = "0j0p9sf56a2fm2hkjnf7x3py5ir49jyavg4q5zdyd7bcf6yq4gi1";
|
2009-02-09 16:51:03 +00:00
|
|
|
};
|
|
|
|
|
2021-05-08 18:12:40 +01:00
|
|
|
patches = [
|
|
|
|
(fetchpatch {
|
|
|
|
name = "CVE-2020-0499.patch";
|
|
|
|
url = "https://github.com/xiph/flac/commit/2e7931c27eb15e387da440a37f12437e35b22dd4.patch";
|
|
|
|
sha256 = "160qzq9ms5addz7sx06pnyjjkqrffr54r4wd8735vy4x008z71ah";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2012-08-23 18:57:31 +01:00
|
|
|
buildInputs = [ libogg ];
|
|
|
|
|
2014-07-23 09:48:27 +01:00
|
|
|
#doCheck = true; # takes lots of time
|
2012-08-23 20:01:00 +01:00
|
|
|
|
2017-07-11 10:14:14 +01:00
|
|
|
outputs = [ "bin" "dev" "out" "man" "doc" ];
|
2012-08-23 20:01:00 +01:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://xiph.org/flac/";
|
2012-08-23 18:57:31 +01:00
|
|
|
description = "Library and tools for encoding and decoding the FLAC lossless audio file format";
|
2014-01-28 17:11:00 +00:00
|
|
|
platforms = platforms.all;
|
2018-08-22 23:01:38 +01:00
|
|
|
license = licenses.bsd3;
|
2009-02-09 16:51:03 +00:00
|
|
|
};
|
|
|
|
}
|