nixos/slimserver: Fix transcoding

This commit is contained in:
Philipp Hausmann 2018-05-19 10:20:00 +02:00
parent 32bad1b636
commit 308638c0ca

View File

@ -1,5 +1,5 @@
{ stdenv, buildPerlPackage, fetchurl
, perl, perlPackages, fetchpatch }:
{ stdenv, buildPerlPackage, fetchurl, fetchpatch, makeWrapper
, perl, perlPackages, flac, faad2, sox, lame, monkeysAudio, wavpack }:
buildPerlPackage rec {
name = "slimserver-${version}";
@ -16,6 +16,7 @@ buildPerlPackage rec {
} ) ];
buildInputs = [
makeWrapper
perl
perlPackages.AnyEvent
perlPackages.AudioScan
@ -75,17 +76,19 @@ buildPerlPackage rec {
preConfigurePhase = "";
buildPhase = "
buildPhase = ''
mv lib tmp
mkdir -p lib/perl5/site_perl
mv CPAN_used/* lib/perl5/site_perl
cp -rf tmp/* lib/perl5/site_perl
";
'';
doCheck = false;
installPhase = ''
cp -r . $out
wrapProgram $out/slimserver.pl \
--prefix PATH : "${stdenv.lib.makeBinPath [ lame flac faad2 sox monkeysAudio wavpack ]}"
'';
outputs = [ "out" ];