aboutsummaryrefslogtreecommitdiff
path: root/pkgs/tools/audio
diff options
context:
space:
mode:
authorFabian Geiselhart <me@f4814n.de>2020-07-11 23:39:52 +0200
committerJan Tojnar <jtojnar@gmail.com>2020-07-12 19:46:21 +0200
commit3518436b9291b9233fe7ca1ec1453a59a69152e2 (patch)
tree70f9a4269072cd3894d43764db0dac2fe5245424 /pkgs/tools/audio
parent99ab9545b294de6be2fd7ee9efef91de738c81b9 (diff)
bpm-tools: Specify dependencies and wrap executables
Diffstat (limited to 'pkgs/tools/audio')
-rw-r--r--pkgs/tools/audio/bpm-tools/default.nix19
1 files changed, 15 insertions, 4 deletions
diff --git a/pkgs/tools/audio/bpm-tools/default.nix b/pkgs/tools/audio/bpm-tools/default.nix
index 035fbf095338..6207cbeb9fe6 100644
--- a/pkgs/tools/audio/bpm-tools/default.nix
+++ b/pkgs/tools/audio/bpm-tools/default.nix
@@ -1,8 +1,17 @@
{
stdenv,
fetchurl,
+ gnuplot,
+ sox,
+ flac,
+ id3v2,
+ vorbis-tools,
+ makeWrapper
}:
+let
+ path = stdenv.lib.makeBinPath [ gnuplot sox flac id3v2 vorbis-tools ];
+in
stdenv.mkDerivation rec {
pname = "bpm-tools";
version = "0.3";
@@ -12,15 +21,17 @@ stdenv.mkDerivation rec {
sha256 = "151vfbs8h3cibs7kbdps5pqrsxhpjv16y2iyfqbxzsclylgfivrp";
};
- patchPhase = ''
- patchShebangs bpm-tag
- patchShebangs bpm-graph
- '';
+ 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 stdenv.lib; {
homepage = "http://www.pogo.org.uk/~mark/bpm-tools/";
description = "Automatically calculate BPM (tempo) of music files";