a52dec: 0.7.4 -> 0.8.0

This commit is contained in:
Weijia Wang 2024-03-18 12:55:54 +01:00
parent 56614a4a4a
commit 819e05d13d
2 changed files with 19 additions and 11 deletions

View file

@ -1,23 +1,31 @@
{ lib, stdenv, fetchurl }:
{
lib,
stdenv,
fetchFromGitLab,
autoreconfHook,
}:
stdenv.mkDerivation rec {
pname = "a52dec";
version = "0.7.4";
version = "0.8.0";
src = fetchurl {
url = "https://liba52.sourceforge.io/files/${pname}-${version}.tar.gz";
sha256 = "oh1ySrOzkzMwGUNTaH34LEdbXfuZdRPu9MJd5shl7DM=";
src = fetchFromGitLab {
domain = "git.adelielinux.org";
owner = "community";
repo = "a52dec";
rev = "v${version}";
hash = "sha256-Z4riiwetJkhQYa+AD8qOiwB1+cuLbOyN/g7D8HM8Pkw=";
};
nativeBuildInputs = [ autoreconfHook ];
configureFlags = [
"--enable-shared"
# Define inline as __attribute__ ((__always_inline__))
"ac_cv_c_inline=yes"
];
makeFlags = [
"AR=${stdenv.cc.targetPrefix}ar"
];
makeFlags = [ "AR=${stdenv.cc.targetPrefix}ar" ];
# fails 1 out of 1 tests with "BAD GLOBAL SYMBOLS" on i686
# which can also be fixed with
@ -28,7 +36,9 @@ stdenv.mkDerivation rec {
meta = with lib; {
description = "ATSC A/52 stream decoder";
homepage = "https://liba52.sourceforge.io/";
platforms = platforms.unix;
license = licenses.gpl2Plus;
maintainers = with maintainers; [ wegank ];
mainProgram = "a52dec";
platforms = platforms.unix;
};
}

View file

@ -20212,8 +20212,6 @@ with pkgs;
### DEVELOPMENT / LIBRARIES
a52dec = callPackage ../development/libraries/a52dec { };
aalib = callPackage ../development/libraries/aalib { };
abseil-cpp_202103 = callPackage ../development/libraries/abseil-cpp/202103.nix {