Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ stdenv 2, lib 3, fetchurl 4, gnuplot 5, sox 6, flac 7, id3v2 8, vorbis-tools 9, makeWrapper 10}: 11 12let 13 path = lib.makeBinPath [ gnuplot sox flac id3v2 vorbis-tools ]; 14in 15stdenv.mkDerivation rec { 16 pname = "bpm-tools"; 17 version = "0.3"; 18 19 src = fetchurl { 20 url = "http://www.pogo.org.uk/~mark/bpm-tools/releases/bpm-tools-${version}.tar.gz"; 21 sha256 = "151vfbs8h3cibs7kbdps5pqrsxhpjv16y2iyfqbxzsclylgfivrp"; 22 }; 23 24 nativeBuildInputs = [ makeWrapper ]; 25 26 installFlags = [ 27 "PREFIX=${placeholder "out"}" 28 ]; 29 30 postFixup = '' 31 wrapProgram $out/bin/bpm-tag --prefix PATH : "${path}" 32 wrapProgram $out/bin/bpm-graph --prefix PATH : "${path}" 33 ''; 34 35 meta = with lib; { 36 homepage = "http://www.pogo.org.uk/~mark/bpm-tools/"; 37 description = "Automatically calculate BPM (tempo) of music files"; 38 license = licenses.gpl2; 39 platforms = platforms.all; 40 maintainers = with maintainers; [ doronbehar ]; 41 }; 42} 43