diff options
author | Sandro <sandro.jaeckel@gmail.com> | 2021-04-05 06:20:56 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-05 06:20:56 +0200 |
commit | e039d12c856d851e75ab93ea5be2913a0bf95bc8 (patch) | |
tree | 84e0135f2b60004439f24262422237e0857391a3 /pkgs/applications | |
parent | 28fa31578204b5d3f5a7f91a2d33c980a1a15adb (diff) | |
parent | d8a43688c9de7056b70e1d543838cb5db4d0e585 (diff) | |
download | nixpkgs-e039d12c856d851e75ab93ea5be2913a0bf95bc8.tar nixpkgs-e039d12c856d851e75ab93ea5be2913a0bf95bc8.tar.gz nixpkgs-e039d12c856d851e75ab93ea5be2913a0bf95bc8.tar.bz2 nixpkgs-e039d12c856d851e75ab93ea5be2913a0bf95bc8.tar.lz nixpkgs-e039d12c856d851e75ab93ea5be2913a0bf95bc8.tar.xz nixpkgs-e039d12c856d851e75ab93ea5be2913a0bf95bc8.tar.zst nixpkgs-e039d12c856d851e75ab93ea5be2913a0bf95bc8.zip |
Merge pull request #117847 from SuperSandro2000/jmusicbot
Diffstat (limited to 'pkgs/applications')
-rw-r--r-- | pkgs/applications/audio/jmusicbot/default.nix | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/pkgs/applications/audio/jmusicbot/default.nix b/pkgs/applications/audio/jmusicbot/default.nix new file mode 100644 index 00000000000..299fe547366 --- /dev/null +++ b/pkgs/applications/audio/jmusicbot/default.nix @@ -0,0 +1,31 @@ +{ stdenv, lib, fetchurl, makeWrapper, jre }: + +stdenv.mkDerivation rec { + pname = "JMusicBot"; + version = "0.3.4"; + + src = fetchurl { + url = "https://github.com/jagrosh/MusicBot/releases/download/${version}/JMusicBot-${version}.jar"; + sha256 = "sha256-++/ot9k74pkN9Wl7IEjiMIv/q5zklIEdU6uFjam0tmU="; + }; + + dontUnpack = true; + + nativeBuildInputs = [ makeWrapper ]; + + installPhase = '' + mkdir -p $out/lib + cp $src $out/lib/JMusicBot + + makeWrapper ${jre}/bin/java $out/bin/JMusicBot \ + --add-flags "-Xmx1G -Dnogui=true -jar $out/lib/JMusicBot" + ''; + + meta = with lib; { + description = "Discord music bot that's easy to set up and run yourself"; + homepage = "https://github.com/jagrosh/MusicBot"; + license = licenses.asl20; + maintainers = with maintainers; [ SuperSandro2000 ]; + platforms = platforms.all; + }; +} |