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

32 lines
799 B
Nix
Raw Normal View History

{ stdenv, fetchurl, jre, makeWrapper }:
with stdenv.lib;
stdenv.mkDerivation rec {
2019-11-02 11:00:31 +01:00
version = "6.7.4";
pname = "frostwire";
src = fetchurl {
url = "https://dl.frostwire.com/frostwire/${version}/frostwire-${version}.noarch.tar.gz";
2019-11-02 11:00:31 +01:00
sha256 = "03vxg0qas4mz5ggrmi396nkz44x1kgq8bfbhbr9mnal9ay9qmi8m";
};
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/
'';
meta = with stdenv.lib; {
2019-11-02 11:00:31 +01:00
homepage = https://www.frostwire.com/;
description = "BitTorrent Client and Cloud File Downloader";
license = licenses.gpl2;
maintainers = with maintainers; [ gavin ];
platforms = platforms.all;
};
}