alac: init at 0.0.7-unstable-2024-10-16

This commit is contained in:
jopejoe1 2024-11-03 17:05:57 +01:00
parent 8d3ac9beb3
commit 5e09c0ef0d

View File

@ -0,0 +1,45 @@
{
autoreconfHook,
fetchFromGitHub,
lib,
stdenv,
testers,
unstableGitUpdater,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "alac";
version = "0.0.7-unstable-2024-10-16";
outputs = [
"out"
"dev"
];
src = fetchFromGitHub {
owner = "mikebrady";
repo = "alac";
rev = "1832544d27d01335d823d639b176d1cae25ecfd4";
hash = "sha256-xRWDeqyJ/BEaSWVlDXgaKIKJuBwM8kJDIATVTVaMn2k=";
};
nativeBuildInputs = [
autoreconfHook
];
# error: 'TARGET_OS_MAC' is not defined, evaluates to 0
env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.hostPlatform.isDarwin "-DTARGET_OS_MAC";
passthru = {
updateScript = unstableGitUpdater { };
tests.pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage;
};
meta = {
description = "Apple Lossless Codec and Utility with Autotools";
homepage = "https://github.com/mikebrady/alac";
license = lib.licenses.asl20;
pkgConfigModules = [ "alac" ];
platforms = lib.platforms.all;
maintainers = with lib.maintainers; [ jopejoe1 ];
};
})