summary refs log tree commit diff
path: root/pkgs/development/libraries/aften/default.nix
diff options
context:
space:
mode:
authorAngus Trau <me@angus.ws>2021-07-27 20:56:27 +1000
committerAngus Trau <me@angus.ws>2021-08-10 16:13:17 +1000
commit99717c1644e08b9d1da0536870fd989e954b3013 (patch)
tree5a96641c2e879671168058061761b41166bff9cd /pkgs/development/libraries/aften/default.nix
parent44b130d392ac6391d801372fc2a8dbf8b655f9db (diff)
downloadnixpkgs-99717c1644e08b9d1da0536870fd989e954b3013.tar
nixpkgs-99717c1644e08b9d1da0536870fd989e954b3013.tar.gz
nixpkgs-99717c1644e08b9d1da0536870fd989e954b3013.tar.bz2
nixpkgs-99717c1644e08b9d1da0536870fd989e954b3013.tar.lz
nixpkgs-99717c1644e08b9d1da0536870fd989e954b3013.tar.xz
nixpkgs-99717c1644e08b9d1da0536870fd989e954b3013.tar.zst
nixpkgs-99717c1644e08b9d1da0536870fd989e954b3013.zip
aften: apple silicon support
Diffstat (limited to 'pkgs/development/libraries/aften/default.nix')
-rw-r--r--pkgs/development/libraries/aften/default.nix13
1 files changed, 10 insertions, 3 deletions
diff --git a/pkgs/development/libraries/aften/default.nix b/pkgs/development/libraries/aften/default.nix
index 1ae5ffb17ad..488c5b6e729 100644
--- a/pkgs/development/libraries/aften/default.nix
+++ b/pkgs/development/libraries/aften/default.nix
@@ -8,14 +8,21 @@ stdenv.mkDerivation rec {
     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 = {
+  meta = with lib; {
     description = "An audio encoder which generates compressed audio streams based on ATSC A/52 specification";
     homepage = "http://aften.sourceforge.net/";
-    license = lib.licenses.lgpl2;
-    platforms = [ "i686-linux" "x86_64-linux" "x86_64-darwin" ];
+    license = licenses.lgpl21Only;
+    platforms = platforms.unix;
+    maintainers = with maintainers; [ angustrau ];
   };
 }