summary refs log tree commit diff
path: root/pkgs/applications/audio/mp3val
diff options
context:
space:
mode:
authoraszlig <aszlig@redmoonstudios.org>2015-10-26 09:57:52 +0100
committeraszlig <aszlig@redmoonstudios.org>2015-10-26 09:57:52 +0100
commit58f97cf7a6a8204c84c34a5b28d4d3f6ed328955 (patch)
treefb6e68ae30224261bd4d6ea6c8ec5083411a682f /pkgs/applications/audio/mp3val
parentf08693d042ae627a0b0a36eda0df2a1c7dea6658 (diff)
parent6e1ef1352368d1d5773f3e2b64acb0b9393e4bb8 (diff)
downloadnixlib-58f97cf7a6a8204c84c34a5b28d4d3f6ed328955.tar
nixlib-58f97cf7a6a8204c84c34a5b28d4d3f6ed328955.tar.gz
nixlib-58f97cf7a6a8204c84c34a5b28d4d3f6ed328955.tar.bz2
nixlib-58f97cf7a6a8204c84c34a5b28d4d3f6ed328955.tar.lz
nixlib-58f97cf7a6a8204c84c34a5b28d4d3f6ed328955.tar.xz
nixlib-58f97cf7a6a8204c84c34a5b28d4d3f6ed328955.tar.zst
nixlib-58f97cf7a6a8204c84c34a5b28d4d3f6ed328955.zip
Merge pull request #10612 from devhell/mp3val.
This adds mp3val, which in turn is needed for the beets "badfiles"
plugin.

Thanks a lot to @devhell for packaging.

Built and tested locally by myself as well.
Diffstat (limited to 'pkgs/applications/audio/mp3val')
-rw-r--r--pkgs/applications/audio/mp3val/default.nix35
1 files changed, 35 insertions, 0 deletions
diff --git a/pkgs/applications/audio/mp3val/default.nix b/pkgs/applications/audio/mp3val/default.nix
new file mode 100644
index 000000000000..dda24c943fe8
--- /dev/null
+++ b/pkgs/applications/audio/mp3val/default.nix
@@ -0,0 +1,35 @@
+{ stdenv, fetchurl }:
+
+stdenv.mkDerivation rec {
+  version = "0.1.8";
+  name = "mp3val-${version}";
+  src = fetchurl {
+    url = "http://downloads.sourceforge.net/mp3val/${name}-src.tar.gz";
+    sha256 = "17y3646ghr38r620vkrxin3dksxqig5yb3nn4cfv6arm7kz6x8cm";
+  };
+
+  makefile = "Makefile.linux";
+
+  installPhase = ''
+    mkdir -p $out/bin/
+    cp mp3val $out/bin/
+  '';
+
+  meta = {
+    description = "A tool for validating and repairing MPEG audio streams";
+    longDescription = ''
+      MP3val is a small, high-speed, free software tool for checking MPEG audio
+      files' integrity. It can be useful for finding corrupted files (e.g.
+      incompletely downloaded, truncated, containing garbage). MP3val is
+      also able to fix most of the problems. Being a multiplatform application,
+      MP3val can be runned both under Windows and under Linux (or BSD). The most
+      common MPEG audio file type is MPEG 1 Layer III (mp3), but MP3val supports
+      also other MPEG versions and layers. The tool is also aware of the most
+      common types of tags (ID3v1, ID3v2, APEv2).
+    '';
+    homepage = http://mp3val.sourceforge.net/index.shtml;
+    license = stdenv.lib.licenses.gpl2;
+    platforms = stdenv.lib.platforms.linux;
+    maintainers = [ stdenv.lib.maintainers.devhell ];
+  };
+}