Guest User

Untitled

a guest
Feb 25th, 2019
122
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. { fetchFromGitHub, pythonPackages, stdenv, lib, pkgs
  2. , buildPythonPackage
  3. , opusSupport ? true
  4. , vorbisSupport ? true
  5. , lameSupport ? false
  6. , flacSupport ? true
  7. , faad2Support ? false
  8. , imageMagickSupport ? false
  9. , makeWrapper }:
  10.  
  11. buildPythonPackage rec {
  12.  
  13. pname = "cherrymusic-${version}";
  14. version = "0.41.2";
  15.  
  16. src = fetchFromGitHub {
  17. owner = "devsnd";
  18. repo = "cherrymusic";
  19. rev = "${version}";
  20. sha256 = "11pzg3fnp76q3chip9hiazdxpm0bk4jd7m3mcg04i8pqr7y4zj1h";
  21. };
  22.  
  23. doCheck = false;
  24.  
  25. nativeBuildInputs = [ makeWrapper ];
  26.  
  27. # buildInputs = with pkgs; [];
  28.  
  29. makeWrapperArgs = let
  30. packagesToBinPath = with pkgs;
  31. [ python36Packages.cherrypy
  32. python36Packages.unidecode
  33. ]
  34. ++ lib.optional opusSupport lame
  35. ++ lib.optional vorbisSupport vorbis-tools
  36. ++ lib.optional lameSupport lame
  37. ++ lib.optional flacSupport flac
  38. ++ lib.optional faad2Support faad2
  39. ++ lib.optional imageMagickSupport imagemagick_light;
  40. in [ ''--prefix PATH : "${lib.makeBinPath packagesToBinPath}"'' ];
  41.  
  42. # installPhase = ''
  43. # mkdir -p $out
  44. # mv * $out/
  45. # '';
  46.  
  47. meta = {
  48. description = "Stream your own music collection to all your devices! The easy to use free and open-source music streaming server.";
  49. longDescription = ''
  50. CherryMusic is a music streaming server based on CherryPy and jPlayer. It
  51. plays the music inside your PC, smartphone, tablet, toaster or whatever
  52. device has a HTML5 compliant browser installed.
  53. '';
  54. homepage = http://www.fomori.org/cherrymusic;
  55. downloadPage = https://github.com/devsnd/cherrymusic;
  56. license = stdenv.lib.licenses.gpl3;
  57. maintainers = [ stdenv.lib.maintainers.monotux ];
  58. platforms = stdenv.lib.platforms.all;
  59. };
  60. }
RAW Paste Data