about summary refs log tree commit diff
path: root/pkgs/applications/networking/p2p/frostwire
diff options
context:
space:
mode:
authorvolth <volth@volth.com>2018-02-27 14:28:45 +0000
committerRok Garbas <rok@garbas.si>2018-03-13 09:54:51 +0100
commitcedfe316480acb9a1b39f6c752a0e3efe34efe1e (patch)
treeebe988f9cb176146a7a813282c7688fba12f108f /pkgs/applications/networking/p2p/frostwire
parent0596a7c6d62647110686b14156d872367211d250 (diff)
frostwire: restore download-and-unpack derivation as frostwire-bin
Diffstat (limited to 'pkgs/applications/networking/p2p/frostwire')
-rw-r--r--pkgs/applications/networking/p2p/frostwire/frostwire-bin.nix31
1 files changed, 31 insertions, 0 deletions
diff --git a/pkgs/applications/networking/p2p/frostwire/frostwire-bin.nix b/pkgs/applications/networking/p2p/frostwire/frostwire-bin.nix
new file mode 100644
index 0000000000000..eff424e2bb128
--- /dev/null
+++ b/pkgs/applications/networking/p2p/frostwire/frostwire-bin.nix
@@ -0,0 +1,31 @@
+{ stdenv, fetchurl, jre, makeWrapper }:
+
+with stdenv.lib;
+
+stdenv.mkDerivation rec {
+  version = "6.6.3";
+  name = "frostwire-${version}";
+
+  src = fetchurl {
+    url = "http://dl.frostwire.com/frostwire/${version}/frostwire-${version}.noarch.tar.gz";
+    sha256 = "0di1kfvdjglav5pm23gcggfn9qznk5viah55jggv4cb6h16vxc3p";
+  };
+
+  nativeBuildInputs = [ makeWrapper ];
+
+  installPhase = ''
+    mkdir -p $out/share/java
+    mv $(ls */*.jar) $out/share/java
+
+    makeWrapper $out/share/java/frostwire $out/bin/frostwire \
+      --prefix PATH : ${jre}/bin/
+  '';
+
+  meta = with stdenv.lib; {
+    homepage = http://www.frostwire.com/;
+    description = "BitTorrent Client and Cloud File Downloader";
+    license = licenses.gpl2;
+    maintainers = with maintainers; [ gavin ];
+    platforms = platforms.all;
+  };
+}