Merge pull request #25362 from laMudri/abcde-musicbrainz

abcde: specify perl runtime dependencies for abcde-musicbrainz-tool
This commit is contained in:
Jörg Thalheim 2017-05-01 18:27:04 +02:00 committed by GitHub
commit 0c0519bd3b
1 changed files with 12 additions and 27 deletions

View File

@ -33,32 +33,17 @@ in
''; '';
# no ELFs in this package, only scripts
dontStrip = true;
dontPatchELF = true;
buildInputs = [ makeWrapper ]; buildInputs = [ makeWrapper ];
propagatedBuildInputs = [ perl DigestSHA MusicBrainz MusicBrainzDiscID ];
installFlags = [ "sysconfdir=$(out)/etc" ]; installFlags = [ "sysconfdir=$(out)/etc" ];
postInstall = '' postFixup = ''
# substituteInPlace "$out/bin/cddb-tool" \ for cmd in abcde cddb-tool abcde-musicbrainz-tool; do
# --replace '#!/bin/sh' '#!${bash}/bin/sh' wrapProgram "$out/bin/$cmd" --prefix PATH ":" \
# substituteInPlace "$out/bin/abcde" \
# --replace '#!/bin/bash' '#!${bash}/bin/bash'
# generic fixup script should be doing this, but it ignores this file for some reason
substituteInPlace "$out/bin/abcde-musicbrainz-tool" \
--replace '#!/usr/bin/perl' '#!${perl}/bin/perl'
wrapProgram "$out/bin/abcde" --prefix PATH ":" \
${stdenv.lib.makeBinPath [ "$out" which libcdio cddiscid wget vorbis-tools id3v2 eyeD3 lame flac glyr ]} ${stdenv.lib.makeBinPath [ "$out" which libcdio cddiscid wget vorbis-tools id3v2 eyeD3 lame flac glyr ]}
done
wrapProgram "$out/bin/cddb-tool" --prefix PATH ":" \
"${wget}/bin"
wrapProgram "$out/bin/abcde-musicbrainz-tool" --prefix PATH ":" \
"${wget}/bin"
''; '';
meta = { meta = {