depot/third_party/nixpkgs/pkgs/tools/audio/bpm-tools/default.nix
Default email 5c370c0b2a Project import generated by Copybara.
GitOrigin-RevId: 33d1e753c82ffc557b4a585c77de43d4c922ebb5
2024-05-15 17:35:15 +02:00

45 lines
960 B
Nix

{ stdenv
, lib
, fetchurl
, gnuplot
, sox
, flac
, id3v2
, vorbis-tools
, makeWrapper
}:
let
path = lib.makeBinPath [ gnuplot sox flac id3v2 vorbis-tools ];
in
stdenv.mkDerivation (finalAttrs: {
pname = "bpm-tools";
version = "0.3";
src = fetchurl {
url = "http://www.pogo.org.uk/~mark/bpm-tools/releases/bpm-tools-${finalAttrs.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.gpl2Only;
platforms = platforms.all;
maintainers = with maintainers; [ doronbehar ];
};
})