2018-02-27 14:28:45 +00:00
|
|
|
{ stdenv, fetchurl, jre, makeWrapper }:
|
|
|
|
|
|
|
|
with stdenv.lib;
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-11-01 08:39:50 +00:00
|
|
|
version = "6.8.3";
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "frostwire";
|
2018-02-27 14:28:45 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2018-06-28 19:43:35 +01:00
|
|
|
url = "https://dl.frostwire.com/frostwire/${version}/frostwire-${version}.noarch.tar.gz";
|
2019-11-01 08:39:50 +00:00
|
|
|
sha256 = "00r7rxzk9a7a1sc0shdx7fq9p9dzg5pwfdf8day0kr1844a5arc2";
|
2018-02-27 14:28:45 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/share/java
|
|
|
|
mv $(ls */*.jar) $out/share/java
|
|
|
|
|
|
|
|
makeWrapper $out/share/java/frostwire $out/bin/frostwire \
|
2019-05-21 18:51:06 +01:00
|
|
|
--prefix PATH : ${jre}/bin/ \
|
|
|
|
--set JAVA_HOME ${jre.home} \
|
|
|
|
--add-flags '-classpath $CLASSPATH:$out/share/java/*'
|
2018-02-27 14:28:45 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2019-05-21 18:51:06 +01:00
|
|
|
homepage = "https://www.frostwire.com/";
|
2018-02-27 14:28:45 +00:00
|
|
|
description = "BitTorrent Client and Cloud File Downloader";
|
|
|
|
license = licenses.gpl2;
|
|
|
|
maintainers = with maintainers; [ gavin ];
|
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|