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

30 lines
783 B
Nix
Raw Normal View History

{ lib, stdenv, fetchurl, jre, makeWrapper }:
stdenv.mkDerivation rec {
2021-08-07 21:11:53 +00:00
version = "6.9.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";
2021-08-07 21:11:53 +00:00
sha256 = "sha256-sWvQDUJGytKA9/UbC7fOk6WhDtTqdhyRmW9GvHFMZh4=";
};
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 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"];
};
}