libmad: fix build on darwin
* stop building with an i486 architecture Conflicts: pkgs/development/libraries/libmad/default.nix
This commit is contained in:
parent
7573056652
commit
970346e2d1
@ -1,10 +1,10 @@
|
|||||||
{stdenv, fetchurl, autoconf}:
|
{stdenv, fetchurl, autoconf}:
|
||||||
|
|
||||||
stdenv.mkDerivation {
|
stdenv.mkDerivation rec {
|
||||||
name = "libmad-0.15.1b";
|
name = "libmad-0.15.1b";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = mirror://sourceforge/mad/libmad-0.15.1b.tar.gz;
|
url = "mirror://sourceforge/mad/${name}.tar.gz";
|
||||||
sha256 = "bbfac3ed6bfbc2823d3775ebb931087371e142bb0e9bb1bee51a76a6e0078690";
|
sha256 = "bbfac3ed6bfbc2823d3775ebb931087371e142bb0e9bb1bee51a76a6e0078690";
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -16,10 +16,13 @@ stdenv.mkDerivation {
|
|||||||
preConfigure = ''
|
preConfigure = ''
|
||||||
autoconf
|
autoconf
|
||||||
substituteInPlace configure --replace "-fforce-mem" ""
|
substituteInPlace configure --replace "-fforce-mem" ""
|
||||||
|
substituteInPlace configure --replace "arch=\"-march=i486\"" ""
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = {
|
meta = with stdenv.lib; {
|
||||||
homepage = http://sourceforge.net/projects/mad/;
|
homepage = http://sourceforge.net/projects/mad/;
|
||||||
description = "A high-quality, fixed-point MPEG audio decoder supporting MPEG-1 and MPEG-2";
|
description = "A high-quality, fixed-point MPEG audio decoder supporting MPEG-1 and MPEG-2";
|
||||||
|
maintainers = with maintainers; [ lovek323 ];
|
||||||
|
platforms = platforms.unix;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user