aboutsummaryrefslogtreecommitdiff
path: root/nixpkgs/pkgs/tools/audio/bpm-tools/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/tools/audio/bpm-tools/default.nix')
-rw-r--r--nixpkgs/pkgs/tools/audio/bpm-tools/default.nix32
1 files changed, 32 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/tools/audio/bpm-tools/default.nix b/nixpkgs/pkgs/tools/audio/bpm-tools/default.nix
new file mode 100644
index 00000000000..035fbf09533
--- /dev/null
+++ b/nixpkgs/pkgs/tools/audio/bpm-tools/default.nix
@@ -0,0 +1,32 @@
+{
+ stdenv,
+ fetchurl,
+}:
+
+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";
+ };
+
+ patchPhase = ''
+ patchShebangs bpm-tag
+ patchShebangs bpm-graph
+ '';
+
+ installFlags = [
+ "PREFIX=${placeholder "out"}"
+ ];
+
+ meta = with stdenv.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 ];
+ };
+}
+