summary refs log tree commit diff
path: root/pkgs/applications/audio/mp3val/default.nix
blob: 636fb7d9b9a170d956383e08f24ac1c5d1c168fa (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
{ stdenv, fetchurl }:

stdenv.mkDerivation rec {
  pname = "mp3val";
  version = "0.1.8";

  src = fetchurl {
    url = "mirror://sourceforge/mp3val/${pname}-${version}-src.tar.gz";
    sha256 = "17y3646ghr38r620vkrxin3dksxqig5yb3nn4cfv6arm7kz6x8cm";
  };

  makefile = "Makefile.linux";

  installPhase = ''
    install -Dv mp3val "$out/bin/mp3val"
  '';

  hardeningDisable = [ "fortify" ];

  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.unix;
    maintainers = [ stdenv.lib.maintainers.devhell ];
  };
}