mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-22 13:43:22 +00:00
970346e2d1
* stop building with an i486 architecture Conflicts: pkgs/development/libraries/libmad/default.nix
29 lines
850 B
Nix
29 lines
850 B
Nix
{stdenv, fetchurl, autoconf}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "libmad-0.15.1b";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://sourceforge/mad/${name}.tar.gz";
|
|
sha256 = "bbfac3ed6bfbc2823d3775ebb931087371e142bb0e9bb1bee51a76a6e0078690";
|
|
};
|
|
|
|
patches = [ ./001-mips_removal_h_constraint.patch ./pkgconfig.patch ];
|
|
|
|
nativeBuildInputs = [ autoconf ];
|
|
|
|
# The -fforce-mem flag has been removed in GCC 4.3.
|
|
preConfigure = ''
|
|
autoconf
|
|
substituteInPlace configure --replace "-fforce-mem" ""
|
|
substituteInPlace configure --replace "arch=\"-march=i486\"" ""
|
|
'';
|
|
|
|
meta = with stdenv.lib; {
|
|
homepage = http://sourceforge.net/projects/mad/;
|
|
description = "A high-quality, fixed-point MPEG audio decoder supporting MPEG-1 and MPEG-2";
|
|
maintainers = with maintainers; [ lovek323 ];
|
|
platforms = platforms.unix;
|
|
};
|
|
}
|