mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-13 17:23:08 +00:00
571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
29 lines
853 B
Nix
29 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 ];
|
|
};
|
|
}
|