about summary refs log tree commit diff
path: root/pkgs/applications/audio/id3v2/default.nix
blob: 6129f25236e6b565282a013f150e608d2c5ce713 (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
{lib, stdenv, fetchurl, id3lib, groff, zlib}:

stdenv.mkDerivation rec {
  pname = "id3v2";
  version = "0.1.12";

  src = fetchurl {
    url = "mirror://sourceforge/id3v2/${pname}-${version}.tar.gz";
    sha256 = "1gr22w8gar7zh5pyyvdy7cy26i47l57jp1l1nd60xfwx339zl1c1";
  };

  nativeBuildInputs = [ groff ];
  buildInputs = [ id3lib zlib ];

  makeFlags = [ "PREFIX=$(out)" ];
  buildFlags = [ "clean" "all" ];

  preInstall = ''
    mkdir -p $out/{bin,share/man/man1}
  '';

  meta = with lib; {
    description = "A command line editor for id3v2 tags";
    homepage = "https://id3v2.sourceforge.net/";
    license = licenses.gpl2Plus;
    platforms = with platforms; unix;
    mainProgram = "id3v2";
  };
}