summary refs log tree commit diff
path: root/pkgs/tools/audio/aucdtect/default.nix
blob: ad9d5fb869053f14cf520e3adeb023164961a537 (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
{ stdenv, fetchurl, lib, rpmextract }:

with lib;

stdenv.mkDerivation rec {
  pname = "aucdtect";
  version = "0.8-2";

  src = fetchurl {
    url = "http://www.true-audio.com/ftp/${pname}-${version}.i586.rpm";
    sha256 = "1lp5f0rq5b5n5il0c64m00gcfskarvgqslpryms9443d200y6mmd";
  };

  unpackCmd = "${rpmextract}/bin/rpmextract $src";

  installPhase = ''
    runHook preInstall

    install -Dm755 local/bin/auCDtect $out/bin/aucdtect

    runHook postInstall
  '';

  dontStrip = true;

  meta = with stdenv.lib; {
    description = "Verify authenticity of lossless audio files";
    homepage = "http://tausoft.org";
    license = licenses.unfreeRedistributable;
    maintainers = with maintainers; [ peterhoeg ];
    platforms = platforms.linux;
  };
}