2019-09-28 18:42:03 +02:00
|
|
|
{
|
2021-01-11 08:54:33 +01:00
|
|
|
lib, stdenv,
|
2019-09-28 18:42:03 +02:00
|
|
|
fetchurl,
|
2020-07-11 23:39:52 +02:00
|
|
|
gnuplot,
|
|
|
|
sox,
|
|
|
|
flac,
|
|
|
|
id3v2,
|
|
|
|
vorbis-tools,
|
|
|
|
makeWrapper
|
2019-09-28 18:42:03 +02:00
|
|
|
}:
|
|
|
|
|
2020-07-11 23:39:52 +02:00
|
|
|
let
|
2021-01-15 10:19:50 +01:00
|
|
|
path = lib.makeBinPath [ gnuplot sox flac id3v2 vorbis-tools ];
|
2020-07-11 23:39:52 +02:00
|
|
|
in
|
2019-09-28 18:42:03 +02:00
|
|
|
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";
|
|
|
|
};
|
|
|
|
|
2020-07-11 23:39:52 +02:00
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
2019-09-28 18:42:03 +02:00
|
|
|
|
|
|
|
installFlags = [
|
|
|
|
"PREFIX=${placeholder "out"}"
|
|
|
|
];
|
|
|
|
|
2020-07-11 23:39:52 +02:00
|
|
|
postFixup = ''
|
|
|
|
wrapProgram $out/bin/bpm-tag --prefix PATH : "${path}"
|
|
|
|
wrapProgram $out/bin/bpm-graph --prefix PATH : "${path}"
|
|
|
|
'';
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2019-09-28 18:42:03 +02:00
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|