nixpkgs/pkgs/development/libraries/aften/default.nix

29 lines
855 B
Nix
Raw Normal View History

{ lib, stdenv, fetchurl, cmake }:
stdenv.mkDerivation rec {
2021-01-19 23:25:12 +00:00
pname = "aften";
version = "0.0.8";
src = fetchurl {
url = "mirror://sourceforge/aften/${pname}-${version}.tar.bz2";
sha256 = "02hc5x9vkgng1v9bzvza9985ifrjd7fjr7nlpvazp4mv6dr89k47";
};
2021-07-27 10:56:27 +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-01-19 23:25:12 +00:00
nativeBuildInputs = [ cmake ];
2021-01-19 23:25:12 +00:00
cmakeFlags = [ "-DSHARED=ON" ];
2021-07-27 10:56:27 +00:00
meta = with lib; {
2021-01-19 23:25:12 +00:00
description = "An audio encoder which generates compressed audio streams based on ATSC A/52 specification";
homepage = "http://aften.sourceforge.net/";
2021-07-27 10:56:27 +00:00
license = licenses.lgpl21Only;
platforms = platforms.unix;
maintainers = with maintainers; [ angustrau ];
2021-01-19 23:25:12 +00:00
};
}