push sheeet
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

This commit is contained in:
Dark Steveneq
2025-10-09 14:15:47 +02:00
commit 646b892680
49168 changed files with 5897842 additions and 0 deletions

View File

@@ -0,0 +1,78 @@
{
cmake,
doxygen,
fetchurl,
graphviz,
lib,
libogg,
nix-update-script,
buildPackages,
pkg-config,
stdenv,
versionCheckHook,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "flac";
version = "1.5.0";
# Building from tarball instead of GitHub to include pre-built manpages.
# This prevents huge numbers of rebuilds for pandoc / haskell-updates.
# It also enables manpages for platforms where pandoc is not available.
src = fetchurl {
url = "http://downloads.xiph.org/releases/flac/flac-${finalAttrs.version}.tar.xz";
hash = "sha256-8sHHZZKoL//4QTujxKEpm2x6sGxzTe4D/YhjBIXCuSA=";
};
hardeningDisable = [ "trivialautovarinit" ];
nativeBuildInputs = [
cmake
doxygen
graphviz
pkg-config
];
buildInputs = [ libogg ];
cmakeFlags = lib.optionals (!stdenv.hostPlatform.isStatic) [
"-DBUILD_SHARED_LIBS=ON"
];
CFLAGS = [
"-O3"
"-funroll-loops"
];
CXXFLAGS = [ "-O3" ];
patches = [ ./package.patch ];
doCheck = true;
outputs = [
"bin"
"dev"
"doc"
"out"
"man"
];
nativeInstallCheckInputs = [ versionCheckHook ];
doInstallCheck = true;
versionCheckProgramArg = "--version";
passthru.updateScript = nix-update-script { };
meta = {
homepage = "https://xiph.org/flac/";
description = "Library and tools for encoding and decoding the FLAC lossless audio file format";
changelog = "https://github.com/xiph/flac/releases/tag/${finalAttrs.version}";
mainProgram = "flac";
platforms = lib.platforms.all;
license = with lib.licenses; [
bsd3
fdl13Plus
gpl2Plus
lgpl21Plus
];
maintainers = with lib.maintainers; [ ruuda ];
};
})

View File

@@ -0,0 +1,12 @@
diff --git a/test/test_replaygain.sh b/test/test_replaygain.sh
index 11fb77dc..b5dea14c 100755
--- a/test/test_replaygain.sh
+++ b/test/test_replaygain.sh
@@ -140,7 +140,4 @@ for ACTION in $REPLAYGAIN_FREQ ; do
done
done
-
-rm -f $testdir/out.flac $testdir/out.meta
-
exit 0