3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/networking/p2p/frostwire/frostwire-bin.nix
2019-08-10 15:11:52 +02:00

34 lines
909 B
Nix

{ stdenv, fetchurl, jre, makeWrapper }:
with stdenv.lib;
stdenv.mkDerivation rec {
version = "6.8.1";
name = "frostwire-${version}";
src = fetchurl {
url = "https://dl.frostwire.com/frostwire/${version}/frostwire-${version}.noarch.tar.gz";
sha256 = "1z8j09lnl0bmxyx0pfia9dyxn4gf6h8s6655zqm4fqixiagvfp65";
};
nativeBuildInputs = [ makeWrapper ];
installPhase = ''
mkdir -p $out/share/java
mv $(ls */*.jar) $out/share/java
makeWrapper $out/share/java/frostwire $out/bin/frostwire \
--prefix PATH : ${jre}/bin/ \
--set JAVA_HOME ${jre.home} \
--add-flags '-classpath $CLASSPATH:$out/share/java/*'
'';
meta = with stdenv.lib; {
homepage = "https://www.frostwire.com/";
description = "BitTorrent Client and Cloud File Downloader";
license = licenses.gpl2;
maintainers = with maintainers; [ gavin ];
platforms = platforms.all;
};
}