2021-02-05 17:12:51 +00:00
|
|
|
{ lib, stdenv, fetchurl, cmake }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2021-02-05 17:12:51 +00:00
|
|
|
pname = "aften";
|
|
|
|
version = "0.0.8";
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://sourceforge/aften/${pname}-${version}.tar.bz2";
|
|
|
|
sha256 = "02hc5x9vkgng1v9bzvza9985ifrjd7fjr7nlpvazp4mv6dr89k47";
|
|
|
|
};
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-08-10 14:31:46 +00:00
|
|
|
patches = [
|
|
|
|
# Add fallback for missing SIMD functions on ARM
|
|
|
|
# Source https://github.com/Homebrew/homebrew-core/blob/cad412c7fb4b64925f821fcc9ac5f16a2c40f32d/Formula/aften.rb
|
|
|
|
./simd-fallback.patch
|
|
|
|
];
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
nativeBuildInputs = [ cmake ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
cmakeFlags = [ "-DSHARED=ON" ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-08-10 14:31:46 +00:00
|
|
|
meta = with lib; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Audio encoder which generates compressed audio streams based on ATSC A/52 specification";
|
2023-02-02 18:25:31 +00:00
|
|
|
homepage = "https://aften.sourceforge.net/";
|
2021-08-10 14:31:46 +00:00
|
|
|
license = licenses.lgpl21Only;
|
|
|
|
platforms = platforms.unix;
|
2022-02-20 05:27:41 +00:00
|
|
|
maintainers = with maintainers; [ emilytrau ];
|
2021-02-05 17:12:51 +00:00
|
|
|
};
|
2020-04-24 23:36:52 +00:00
|
|
|
}
|