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