Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
42 lines
913 B
Nix
42 lines
913 B
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchurl,
|
|
libogg,
|
|
pkg-config,
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "libvorbis";
|
|
version = "1.3.7";
|
|
|
|
src = fetchurl {
|
|
url = "https://downloads.xiph.org/releases/vorbis/${pname}-${version}.tar.xz";
|
|
sha256 = "0jwmf87x5sdis64rbv0l87mdpah1rbilkkxszipbzg128f9w8g5k";
|
|
};
|
|
|
|
outputs = [
|
|
"out"
|
|
"dev"
|
|
"doc"
|
|
];
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
propagatedBuildInputs = [ libogg ];
|
|
|
|
doCheck = true;
|
|
|
|
# strip -mno-ieee-fp flag from configure and configure.ac when using
|
|
# clang as the flag is not recognized by the compiler
|
|
preConfigure = lib.optionalString (stdenv.cc.isClang or false) ''
|
|
sed s/\-mno\-ieee\-fp// -i {configure,configure.ac}
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Vorbis audio compression reference implementation";
|
|
homepage = "https://xiph.org/vorbis/";
|
|
license = licenses.bsd3;
|
|
platforms = platforms.all;
|
|
};
|
|
}
|