diff --git a/pkgs/applications/audio/mpg123/default.nix b/pkgs/applications/audio/mpg123/default.nix new file mode 100644 index 000000000000..80de5567000d --- /dev/null +++ b/pkgs/applications/audio/mpg123/default.nix @@ -0,0 +1,23 @@ +{stdenv, fetchurl, alsaLib }: + +stdenv.mkDerivation { + name = "mpg123-1.12.3"; + + src = fetchurl { + url = mirror://sourceforge/mpg123/mpg123-1.12.3.tar.bz2; + sha256 = "1ij689s7jch3d4g0ja3jylaphallc8vgrsrm9b12254phnyy23xf"; + }; + + buildInputs = [ alsaLib ]; + + crossAttrs = { + configureFlags = if stdenv.cross ? mpg123 then + "--with-cpu=${stdenv.cross.mpg123.cpu}" else ""; + }; + + meta = { + description = "Command-line MP3 player"; + homepage = http://mpg123.sourceforge.net/; + license = "LGPL"; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 9c96bf35141d..bb652f691c03 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -5860,6 +5860,8 @@ let mpc123 = callPackage ../applications/audio/mpc123 { }; + mpg123 = callPackage ../applications/audio/mpg123 { }; + mpg321 = callPackage ../applications/audio/mpg321 { }; MPlayer = callPackage ../applications/video/MPlayer {