8 stdenv.mkDerivation rec {
12 src = fetchFromGitLab {
13 domain = "git.adelielinux.org";
17 hash = "sha256-Z4riiwetJkhQYa+AD8qOiwB1+cuLbOyN/g7D8HM8Pkw=";
20 nativeBuildInputs = [ autoreconfHook ];
24 # Define inline as __attribute__ ((__always_inline__))
28 makeFlags = [ "AR=${stdenv.cc.targetPrefix}ar" ];
30 # fails 1 out of 1 tests with "BAD GLOBAL SYMBOLS" on i686
31 # which can also be fixed with
32 # hardeningDisable = lib.optional stdenv.hostPlatform.isi686 "pic";
33 # but it's better to disable tests than loose ASLR on i686
34 doCheck = !stdenv.hostPlatform.isi686;
37 description = "ATSC A/52 stream decoder";
38 homepage = "https://liba52.sourceforge.io/";
39 changelog = "https://git.adelielinux.org/community/a52dec/-/blob/v${version}/ChangeLog?ref_type=tags";
40 license = licenses.gpl2Plus;
41 maintainers = with maintainers; [ wegank ];
42 mainProgram = "a52dec";
43 platforms = platforms.unix;