btrbk: add mainProgram (#356350)
[NixPkgs.git] / pkgs / by-name / al / alac / package.nix
blob5aaedfe3c45489a6a36725cfe78af2660e64f310
2   autoreconfHook,
3   fetchFromGitHub,
4   lib,
5   stdenv,
6   testers,
7   unstableGitUpdater,
8 }:
9 stdenv.mkDerivation (finalAttrs: {
10   pname = "alac";
11   version = "0.0.7-unstable-2024-10-16";
13   outputs = [
14     "out"
15     "dev"
16   ];
18   src = fetchFromGitHub {
19     owner = "mikebrady";
20     repo = "alac";
21     rev = "1832544d27d01335d823d639b176d1cae25ecfd4";
22     hash = "sha256-xRWDeqyJ/BEaSWVlDXgaKIKJuBwM8kJDIATVTVaMn2k=";
23   };
25   nativeBuildInputs = [
26     autoreconfHook
27   ];
29   # error: 'TARGET_OS_MAC' is not defined, evaluates to 0
30   env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.hostPlatform.isDarwin "-DTARGET_OS_MAC";
32   passthru = {
33     updateScript = unstableGitUpdater { };
34     tests.pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage;
35   };
37   meta = {
38     description = "Apple Lossless Codec and Utility with Autotools";
39     homepage = "https://github.com/mikebrady/alac";
40     license = lib.licenses.asl20;
41     pkgConfigModules = [ "alac" ];
42     platforms = lib.platforms.all;
43     maintainers = with lib.maintainers; [ jopejoe1 ];
44   };