mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 14:54:29 +01:00
nixos/slimserver: Fix transcoding
This commit is contained in:
parent
32bad1b636
commit
308638c0ca
1 changed files with 7 additions and 4 deletions
|
@ -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" ];
|
||||
|
|
Loading…
Reference in a new issue