2021-02-05 17:12:51 +00:00
|
|
|
{ stdenv
|
|
|
|
, lib
|
|
|
|
, fetchurl
|
|
|
|
, gnuplot
|
|
|
|
, sox
|
|
|
|
, flac
|
|
|
|
, id3v2
|
|
|
|
, vorbis-tools
|
|
|
|
, makeWrapper
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
2020-07-18 16:06:22 +00:00
|
|
|
let
|
2021-01-15 22:18:51 +00:00
|
|
|
path = lib.makeBinPath [ gnuplot sox flac id3v2 vorbis-tools ];
|
2020-07-18 16:06:22 +00:00
|
|
|
in
|
2023-10-09 19:29:22 +00:00
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "bpm-tools";
|
|
|
|
version = "0.3";
|
|
|
|
|
|
|
|
src = fetchurl {
|
2023-10-09 19:29:22 +00:00
|
|
|
url = "http://www.pogo.org.uk/~mark/bpm-tools/releases/bpm-tools-${finalAttrs.version}.tar.gz";
|
2020-04-24 23:36:52 +00:00
|
|
|
sha256 = "151vfbs8h3cibs7kbdps5pqrsxhpjv16y2iyfqbxzsclylgfivrp";
|
|
|
|
};
|
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
makeWrapper
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
installFlags = [
|
|
|
|
"PREFIX=${placeholder "out"}"
|
|
|
|
];
|
|
|
|
|
2020-07-18 16:06:22 +00:00
|
|
|
postFixup = ''
|
|
|
|
wrapProgram $out/bin/bpm-tag --prefix PATH : "${path}"
|
|
|
|
wrapProgram $out/bin/bpm-graph --prefix PATH : "${path}"
|
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "http://www.pogo.org.uk/~mark/bpm-tools/";
|
|
|
|
description = "Automatically calculate BPM (tempo) of music files";
|
2024-05-15 15:35:15 +00:00
|
|
|
license = licenses.gpl2Only;
|
2020-04-24 23:36:52 +00:00
|
|
|
platforms = platforms.all;
|
|
|
|
maintainers = with maintainers; [ doronbehar ];
|
|
|
|
};
|
2023-10-09 19:29:22 +00:00
|
|
|
})
|
2020-04-24 23:36:52 +00:00
|
|
|
|