3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/networking/p2p/frostwire/frostwire-bin.nix

34 lines
899 B
Nix
Raw Normal View History

{ stdenv, fetchurl, jre, makeWrapper }:
with stdenv.lib;
stdenv.mkDerivation rec {
2019-11-01 08:39:50 +00:00
version = "6.8.3";
pname = "frostwire";
src = fetchurl {
url = "https://dl.frostwire.com/frostwire/${version}/frostwire-${version}.noarch.tar.gz";
2019-11-01 08:39:50 +00:00
sha256 = "00r7rxzk9a7a1sc0shdx7fq9p9dzg5pwfdf8day0kr1844a5arc2";
};
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;
};
}