Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- { fetchFromGitHub, pythonPackages, stdenv, lib, pkgs
- , buildPythonPackage
- , opusSupport ? true
- , vorbisSupport ? true
- , lameSupport ? false
- , flacSupport ? true
- , faad2Support ? false
- , imageMagickSupport ? false
- , makeWrapper }:
- buildPythonPackage rec {
- pname = "cherrymusic-${version}";
- version = "0.41.2";
- src = fetchFromGitHub {
- owner = "devsnd";
- repo = "cherrymusic";
- rev = "${version}";
- sha256 = "11pzg3fnp76q3chip9hiazdxpm0bk4jd7m3mcg04i8pqr7y4zj1h";
- };
- doCheck = false;
- nativeBuildInputs = [ makeWrapper ];
- # buildInputs = with pkgs; [];
- makeWrapperArgs = let
- packagesToBinPath = with pkgs;
- [ python36Packages.cherrypy
- python36Packages.unidecode
- ]
- ++ lib.optional opusSupport lame
- ++ lib.optional vorbisSupport vorbis-tools
- ++ lib.optional lameSupport lame
- ++ lib.optional flacSupport flac
- ++ lib.optional faad2Support faad2
- ++ lib.optional imageMagickSupport imagemagick_light;
- in [ ''--prefix PATH : "${lib.makeBinPath packagesToBinPath}"'' ];
- # installPhase = ''
- # mkdir -p $out
- # mv * $out/
- # '';
- meta = {
- description = "Stream your own music collection to all your devices! The easy to use free and open-source music streaming server.";
- longDescription = ''
- CherryMusic is a music streaming server based on CherryPy and jPlayer. It
- plays the music inside your PC, smartphone, tablet, toaster or whatever
- device has a HTML5 compliant browser installed.
- '';
- homepage = http://www.fomori.org/cherrymusic;
- downloadPage = https://github.com/devsnd/cherrymusic;
- license = stdenv.lib.licenses.gpl3;
- maintainers = [ stdenv.lib.maintainers.monotux ];
- platforms = stdenv.lib.platforms.all;
- };
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement