diff options
author | Lluís Batlle i Rossell <viric@vicerveza.homeunix.net> | 2010-08-21 16:54:02 +0000 |
---|---|---|
committer | Lluís Batlle i Rossell <viric@vicerveza.homeunix.net> | 2010-08-21 16:54:02 +0000 |
commit | e0b377fd81a3d373c40f5ffb5883b2a43916f3f2 (patch) | |
tree | 0d0d853e1a2e0f60c9766032b53f45451fae3399 /pkgs/applications/audio/mpg123/default.nix | |
parent | c68d102286ef21680f1984efeb606f48f8bd59c2 (diff) |
Adding mpg123 (it even cross-builds fine for the nanonote)
svn path=/nixpkgs/branches/stdenv-updates/; revision=23313
Diffstat (limited to 'pkgs/applications/audio/mpg123/default.nix')
-rw-r--r-- | pkgs/applications/audio/mpg123/default.nix | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/pkgs/applications/audio/mpg123/default.nix b/pkgs/applications/audio/mpg123/default.nix new file mode 100644 index 0000000000000..80de5567000d5 --- /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"; + }; +} |