nixpkgs/pkgs/applications/networking/p2p/frostwire/frostwire-bin.nix

32 lines
802 B
Nix
Raw Normal View History

{ stdenv, fetchurl, jre, makeWrapper }:
with stdenv.lib;
stdenv.mkDerivation rec {
2020-01-06 13:23:28 +00:00
version = "6.8.3";
pname = "frostwire";
src = fetchurl {
2019-11-03 13:25:33 +00:00
url = "https://dl.frostwire.com/frostwire/${version}/frostwire-${version}.amd64.tar.gz";
2020-01-06 13:23:28 +00:00
sha256 = "1fnrr96jmak2rf54cc0chbm7ls5rfav78vhw98sa7zy544l2sn88";
};
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 10:00:31 +00:00
--prefix PATH : ${jre}/bin/
'';
meta = with stdenv.lib; {
2019-11-02 10:00:31 +00:00
homepage = https://www.frostwire.com/;
description = "BitTorrent Client and Cloud File Downloader";
license = licenses.gpl2;
maintainers = with maintainers; [ gavin ];
2019-11-03 13:25:33 +00:00
platforms = [ "x86_64-linux"];
};
}