File tree Expand file tree Collapse file tree
pkgs/tools/audio/bpm-tools Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11{
22 stdenv ,
33 fetchurl ,
4+ gnuplot ,
5+ sox ,
6+ flac ,
7+ id3v2 ,
8+ vorbis-tools ,
9+ makeWrapper
410} :
511
12+ let
13+ path = stdenv . lib . makeBinPath [ gnuplot sox flac id3v2 vorbis-tools ] ;
14+ in
615stdenv . mkDerivation rec {
716 pname = "bpm-tools" ;
817 version = "0.3" ;
@@ -12,15 +21,17 @@ stdenv.mkDerivation rec {
1221 sha256 = "151vfbs8h3cibs7kbdps5pqrsxhpjv16y2iyfqbxzsclylgfivrp" ;
1322 } ;
1423
15- patchPhase = ''
16- patchShebangs bpm-tag
17- patchShebangs bpm-graph
18- '' ;
24+ nativeBuildInputs = [ makeWrapper ] ;
1925
2026 installFlags = [
2127 "PREFIX=${ placeholder "out" } "
2228 ] ;
2329
30+ postFixup = ''
31+ wrapProgram $out/bin/bpm-tag --prefix PATH : "${ path } "
32+ wrapProgram $out/bin/bpm-graph --prefix PATH : "${ path } "
33+ '' ;
34+
2435 meta = with stdenv . lib ; {
2536 homepage = "http://www.pogo.org.uk/~mark/bpm-tools/" ;
2637 description = "Automatically calculate BPM (tempo) of music files" ;
You can’t perform that action at this time.
0 commit comments