bpm-tools: Specify dependencies and wrap executables
This commit is contained in:
parent
99ab9545b2
commit
3518436b92
@ -1,8 +1,17 @@
|
|||||||
{
|
{
|
||||||
stdenv,
|
stdenv,
|
||||||
fetchurl,
|
fetchurl,
|
||||||
|
gnuplot,
|
||||||
|
sox,
|
||||||
|
flac,
|
||||||
|
id3v2,
|
||||||
|
vorbis-tools,
|
||||||
|
makeWrapper
|
||||||
}:
|
}:
|
||||||
|
|
||||||
|
let
|
||||||
|
path = stdenv.lib.makeBinPath [ gnuplot sox flac id3v2 vorbis-tools ];
|
||||||
|
in
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "bpm-tools";
|
pname = "bpm-tools";
|
||||||
version = "0.3";
|
version = "0.3";
|
||||||
@ -12,15 +21,17 @@ stdenv.mkDerivation rec {
|
|||||||
sha256 = "151vfbs8h3cibs7kbdps5pqrsxhpjv16y2iyfqbxzsclylgfivrp";
|
sha256 = "151vfbs8h3cibs7kbdps5pqrsxhpjv16y2iyfqbxzsclylgfivrp";
|
||||||
};
|
};
|
||||||
|
|
||||||
patchPhase = ''
|
nativeBuildInputs = [ makeWrapper ];
|
||||||
patchShebangs bpm-tag
|
|
||||||
patchShebangs bpm-graph
|
|
||||||
'';
|
|
||||||
|
|
||||||
installFlags = [
|
installFlags = [
|
||||||
"PREFIX=${placeholder "out"}"
|
"PREFIX=${placeholder "out"}"
|
||||||
];
|
];
|
||||||
|
|
||||||
|
postFixup = ''
|
||||||
|
wrapProgram $out/bin/bpm-tag --prefix PATH : "${path}"
|
||||||
|
wrapProgram $out/bin/bpm-graph --prefix PATH : "${path}"
|
||||||
|
'';
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
homepage = "http://www.pogo.org.uk/~mark/bpm-tools/";
|
homepage = "http://www.pogo.org.uk/~mark/bpm-tools/";
|
||||||
description = "Automatically calculate BPM (tempo) of music files";
|
description = "Automatically calculate BPM (tempo) of music files";
|
||||||
|
Loading…
Reference in New Issue
Block a user