2014-11-02 14:10:03 +00:00
|
|
|
{ stdenv, fetchurl, jre }:
|
|
|
|
|
|
|
|
with stdenv.lib;
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2017-03-04 01:59:56 +00:00
|
|
|
version = "6.4.5";
|
2014-11-02 14:10:03 +00:00
|
|
|
name = "frostwire-${version}";
|
|
|
|
|
|
|
|
src = fetchurl {
|
2017-03-04 01:59:56 +00:00
|
|
|
url = "http://dl.frostwire.com/frostwire/${version}/frostwire-${version}.noarch.tar.gz";
|
|
|
|
sha256 = "01nq1vwkqdidmprlnz5d3c5412r6igv689barv64dmb9m6iqg53z";
|
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
|
|
|
|
'';
|
|
|
|
|
2017-03-04 01:59:56 +00:00
|
|
|
meta = with stdenv.lib; {
|
2014-11-02 14:10:03 +00:00
|
|
|
homepage = http://www.frostwire.com/;
|
|
|
|
description = "BitTorrent Client and Cloud File Downloader";
|
2017-03-04 01:59:56 +00:00
|
|
|
license = licenses.gpl2;
|
|
|
|
maintainers = with maintainers; [ gavin ];
|
|
|
|
platforms = platforms.all;
|
2014-11-02 14:10:03 +00:00
|
|
|
};
|
|
|
|
}
|