2014-11-02 14:10:03 +00:00
|
|
|
{ stdenv, fetchurl, jre }:
|
|
|
|
|
|
|
|
with stdenv.lib;
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
version = "6.0.0";
|
|
|
|
name = "frostwire-${version}";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://dl.frostwire.com/frostwire/${version}/frostwire-${version}.x86_64.tar.gz";
|
2014-11-29 23:25:41 +00:00
|
|
|
sha256 = "16rpfh235jj75vm4rx6qqw25ax3rk2p21l6lippbm0pi13lp2pdh";
|
2014-11-02 14:10:03 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
inherit jre;
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
jar=$(ls */*.jar)
|
|
|
|
|
|
|
|
mkdir -p $out/share/java
|
|
|
|
mv $jar $out/share/java
|
|
|
|
|
|
|
|
mkdir -p $out/bin
|
|
|
|
cat > $out/bin/frostwire <<EOF
|
|
|
|
#! $SHELL -e
|
|
|
|
exec $out/share/java/frostwire
|
|
|
|
EOF
|
|
|
|
chmod +x $out/bin/frostwire
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = http://www.frostwire.com/;
|
|
|
|
description = "BitTorrent Client and Cloud File Downloader";
|
|
|
|
license = stdenv.lib.licenses.gpl2;
|
|
|
|
maintainers = [ stdenv.lib.maintainers.gavin ];
|
2016-08-02 18:50:55 +01:00
|
|
|
platforms = stdenv.lib.platforms.unix;
|
2014-11-02 14:10:03 +00:00
|
|
|
};
|
|
|
|
}
|