Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / libraries / aften / default.nix
blob97b2230f0311672886884a1f4b4cbaa13db6d140
1 { lib, stdenv, fetchurl, cmake }:
3 stdenv.mkDerivation rec {
4   pname = "aften";
5   version = "0.0.8";
6   src = fetchurl {
7     url = "mirror://sourceforge/aften/${pname}-${version}.tar.bz2";
8     sha256 = "02hc5x9vkgng1v9bzvza9985ifrjd7fjr7nlpvazp4mv6dr89k47";
9   };
11   patches = [
12     # Add fallback for missing SIMD functions on ARM
13     # Source https://github.com/Homebrew/homebrew-core/blob/cad412c7fb4b64925f821fcc9ac5f16a2c40f32d/Formula/aften.rb
14     ./simd-fallback.patch
15   ];
17   nativeBuildInputs = [ cmake ];
19   cmakeFlags = [ "-DSHARED=ON" ];
21   meta = with lib; {
22     description = "An audio encoder which generates compressed audio streams based on ATSC A/52 specification";
23     homepage = "https://aften.sourceforge.net/";
24     license = licenses.lgpl21Only;
25     platforms = platforms.unix;
26     maintainers = with maintainers; [ emilytrau ];
27   };