nixpkgs/pkgs/development/libraries/aften/default.nix
Samuel Dionne-Riel bb27520fa8 aften: Disables build on aarch64-linux
It looks like it would be a trivial fix with
`-Wno-shift-negative-value`, but in the end it fails with:

```
[100%] Linking C executable aften
libaften_static.a(a52enc.o): In function `aften_encode_init':
a52enc.c:(.text+0x303c): undefined reference to `apply_simd_restrictions'
collect2: error: ld returned 1 exit status
```

So it looks like it's not simply a warning issue.
2018-12-10 14:55:19 -05:00

22 lines
589 B
Nix

{ stdenv, fetchurl, cmake }:
stdenv.mkDerivation rec {
name = "aften-${version}";
version = "0.0.8";
src = fetchurl {
url = "mirror://sourceforge/aften/${name}.tar.bz2";
sha256 = "02hc5x9vkgng1v9bzvza9985ifrjd7fjr7nlpvazp4mv6dr89k47";
};
nativeBuildInputs = [ cmake ];
cmakeFlags = [ "-DSHARED=ON" ];
meta = {
description = "An audio encoder which generates compressed audio streams based on ATSC A/52 specification";
homepage = "http://aften.sourceforge.net/";
license = stdenv.lib.licenses.lgpl2;
platforms = [ "i686-linux" "x86_64-linux" "x86_64-darwin" ];
};
}