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

32 lines
804 B
Nix
Raw Normal View History

{ stdenv, fetchurl, jre, makeWrapper }:
with stdenv.lib;
stdenv.mkDerivation rec {
2020-03-04 23:31:59 +00:00
version = "6.8.4";
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-03-04 23:31:59 +00:00
sha256 = "1qs0r5621ihb9sj4sqpmxj9smwf8a8k3n1qx2i0sz65qhjfc90zz";
};
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; {
2020-03-04 23:31:59 +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"];
};
}