2016-04-20 17:04:58 +02:00
|
|
|
{ stdenv, fetchurl, lib, rpmextract }:
|
|
|
|
|
|
|
|
with lib;
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-09-04 15:21:09 +02:00
|
|
|
pname = "aucdtect";
|
2016-04-20 17:04:58 +02:00
|
|
|
version = "0.8-2";
|
|
|
|
|
|
|
|
src = fetchurl {
|
2019-09-04 15:21:09 +02:00
|
|
|
url = "http://www.true-audio.com/ftp/${pname}-${version}.i586.rpm";
|
2016-04-20 17:04:58 +02:00
|
|
|
sha256 = "1lp5f0rq5b5n5il0c64m00gcfskarvgqslpryms9443d200y6mmd";
|
|
|
|
};
|
|
|
|
|
|
|
|
unpackCmd = "${rpmextract}/bin/rpmextract $src";
|
|
|
|
|
|
|
|
installPhase = ''
|
2019-09-04 15:21:09 +02:00
|
|
|
runHook preInstall
|
|
|
|
|
|
|
|
install -Dm755 local/bin/auCDtect $out/bin/aucdtect
|
|
|
|
|
|
|
|
runHook postInstall
|
2016-04-20 17:04:58 +02:00
|
|
|
'';
|
|
|
|
|
|
|
|
dontStrip = true;
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Verify authenticity of lossless audio files";
|
2019-09-04 15:21:09 +02:00
|
|
|
homepage = "http://tausoft.org";
|
2016-04-20 17:04:58 +02:00
|
|
|
license = licenses.unfreeRedistributable;
|
|
|
|
maintainers = with maintainers; [ peterhoeg ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|