2021-05-28 09:39:13 +00:00
|
|
|
{ lib, stdenv, fetchurl, fetchpatch, libogg }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2021-05-28 09:39:13 +00:00
|
|
|
pname = "flac";
|
2022-10-21 18:38:19 +00:00
|
|
|
version = "1.4.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2021-05-28 09:39:13 +00:00
|
|
|
url = "http://downloads.xiph.org/releases/flac/${pname}-${version}.tar.xz";
|
2022-10-21 18:38:19 +00:00
|
|
|
# Official checksum is published at https://github.com/xiph/flac/releases/tag/${version}
|
|
|
|
sha256 = "91303c3e5dfde52c3e94e75976c0ab3ee14ced278ab8f60033a3a12db9209ae6";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ libogg ];
|
|
|
|
|
|
|
|
#doCheck = true; # takes lots of time
|
|
|
|
|
|
|
|
outputs = [ "bin" "dev" "out" "man" "doc" ];
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://xiph.org/flac/";
|
|
|
|
description = "Library and tools for encoding and decoding the FLAC lossless audio file format";
|
|
|
|
platforms = platforms.all;
|
|
|
|
license = licenses.bsd3;
|
2022-10-21 18:38:19 +00:00
|
|
|
maintainers = with maintainers; [ ruuda ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|