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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

52 lines
1.1 KiB
Nix
Raw Normal View History

{ lib
, stdenv
, fetchurl
, cmake
, pkg-config
, doxygen
, graphviz
, libogg
}:
stdenv.mkDerivation rec {
pname = "flac";
2022-10-24 10:38:35 +00:00
version = "1.4.2";
2012-08-23 17:57:31 +00:00
src = fetchurl {
url = "http://downloads.xiph.org/releases/flac/${pname}-${version}.tar.xz";
# Official checksum is published at https://github.com/xiph/flac/releases/tag/${version}
2022-10-24 10:38:35 +00:00
sha256 = "sha256-4yLVih9I0j2d049DJnKGX2955zpvnMWl9X/KqD61qOQ=";
};
nativeBuildInputs = [
cmake
pkg-config
doxygen
graphviz
];
2012-08-23 17:57:31 +00:00
buildInputs = [
libogg
];
cmakeFlags = lib.optionals (!stdenv.hostPlatform.isStatic) [
"-DBUILD_SHARED_LIBS=ON"
];
CFLAGS = [ "-O3" "-funroll-loops" ];
CXXFLAGS = [ "-O3" ];
# 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";
2022-10-29 16:59:56 +00:00
changelog = "https://xiph.org/flac/changelog.html";
2014-01-28 17:11:00 +00:00
platforms = platforms.all;
2018-08-22 22:01:38 +00:00
license = licenses.bsd3;
maintainers = with maintainers; [ ruuda ];
};
}