11 stdenv.mkDerivation rec {
16 url = "http://downloads.xiph.org/releases/flac/${pname}-${version}.tar.xz";
17 # Official checksum is published at https://github.com/xiph/flac/releases/tag/${version}
18 hash = "sha256-bFjmnNIjSPRBuGEJK4JeWR0Lgi4QbebrDuTQXScgW3A=";
32 cmakeFlags = lib.optionals (!stdenv.hostPlatform.isStatic) [
33 "-DBUILD_SHARED_LIBS=ON"
36 CFLAGS = [ "-O3" "-funroll-loops" ];
39 # doCheck = true; # takes lots of time
41 outputs = [ "bin" "dev" "out" "man" "doc" ];
44 homepage = "https://xiph.org/flac/";
45 description = "Library and tools for encoding and decoding the FLAC lossless audio file format";
46 changelog = "https://xiph.org/flac/changelog.html";
48 platforms = platforms.all;
49 license = licenses.bsd3;
50 maintainers = with maintainers; [ ruuda ];