depot/third_party/nixpkgs/pkgs/development/libraries/aften/default.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

28 lines
853 B
Nix

{ lib, stdenv, fetchurl, cmake }:
stdenv.mkDerivation rec {
pname = "aften";
version = "0.0.8";
src = fetchurl {
url = "mirror://sourceforge/aften/${pname}-${version}.tar.bz2";
sha256 = "02hc5x9vkgng1v9bzvza9985ifrjd7fjr7nlpvazp4mv6dr89k47";
};
patches = [
# Add fallback for missing SIMD functions on ARM
# Source https://github.com/Homebrew/homebrew-core/blob/cad412c7fb4b64925f821fcc9ac5f16a2c40f32d/Formula/aften.rb
./simd-fallback.patch
];
nativeBuildInputs = [ cmake ];
cmakeFlags = [ "-DSHARED=ON" ];
meta = with lib; {
description = "Audio encoder which generates compressed audio streams based on ATSC A/52 specification";
homepage = "https://aften.sourceforge.net/";
license = licenses.lgpl21Only;
platforms = platforms.unix;
maintainers = with maintainers; [ emilytrau ];
};
}