nixpkgs/pkgs/applications/audio/flac/default.nix

33 lines
886 B
Nix
Raw Normal View History

{ lib, stdenv, fetchurl, fetchpatch, libogg }:
stdenv.mkDerivation rec {
pname = "flac";
version = "1.3.3";
2012-08-23 17:57:31 +00:00
src = fetchurl {
url = "http://downloads.xiph.org/releases/flac/${pname}-${version}.tar.xz";
sha256 = "0j0p9sf56a2fm2hkjnf7x3py5ir49jyavg4q5zdyd7bcf6yq4gi1";
};
patches = [
(fetchpatch {
name = "CVE-2020-0499.patch";
url = "https://github.com/xiph/flac/commit/2e7931c27eb15e387da440a37f12437e35b22dd4.patch";
sha256 = "160qzq9ms5addz7sx06pnyjjkqrffr54r4wd8735vy4x008z71ah";
})
];
2012-08-23 17:57:31 +00:00
buildInputs = [ libogg ];
#doCheck = true; # takes lots of time
outputs = [ "bin" "dev" "out" "man" "doc" ];
meta = with lib; {
homepage = "https://xiph.org/flac/";
2012-08-23 17:57:31 +00: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 22:01:38 +00:00
license = licenses.bsd3;
};
}