a5adf1ddd8
GitOrigin-RevId: b3616bd96400ce0252c241d76fcafb64389defc6
43 lines
937 B
Nix
43 lines
937 B
Nix
{
|
|
lib, stdenv,
|
|
fetchurl,
|
|
gnuplot,
|
|
sox,
|
|
flac,
|
|
id3v2,
|
|
vorbis-tools,
|
|
makeWrapper
|
|
}:
|
|
|
|
let
|
|
path = lib.makeBinPath [ gnuplot sox flac id3v2 vorbis-tools ];
|
|
in
|
|
stdenv.mkDerivation rec {
|
|
pname = "bpm-tools";
|
|
version = "0.3";
|
|
|
|
src = fetchurl {
|
|
url = "http://www.pogo.org.uk/~mark/bpm-tools/releases/bpm-tools-${version}.tar.gz";
|
|
sha256 = "151vfbs8h3cibs7kbdps5pqrsxhpjv16y2iyfqbxzsclylgfivrp";
|
|
};
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
installFlags = [
|
|
"PREFIX=${placeholder "out"}"
|
|
];
|
|
|
|
postFixup = ''
|
|
wrapProgram $out/bin/bpm-tag --prefix PATH : "${path}"
|
|
wrapProgram $out/bin/bpm-graph --prefix PATH : "${path}"
|
|
'';
|
|
|
|
meta = with lib; {
|
|
homepage = "http://www.pogo.org.uk/~mark/bpm-tools/";
|
|
description = "Automatically calculate BPM (tempo) of music files";
|
|
license = licenses.gpl2;
|
|
platforms = platforms.all;
|
|
maintainers = with maintainers; [ doronbehar ];
|
|
};
|
|
}
|
|
|