about summary refs log tree commit diff
path: root/pkgs/applications/networking/p2p
diff options
context:
space:
mode:
authorGavin Rogers <gavin.m.rogers@gmail.com>2014-11-02 14:10:03 +0000
committerGavin Rogers <gavin.m.rogers@gmail.com>2014-11-04 18:57:01 +0000
commitcb68376fcd76601a9cdcdeb2b45f68d3a4204ae5 (patch)
tree32849bc5eeec44ae86f2f174643b4be7217a35c2 /pkgs/applications/networking/p2p
parent2d47366e4c0e3ec30dd69fcff791bfd2698dde66 (diff)
downloadnixlib-cb68376fcd76601a9cdcdeb2b45f68d3a4204ae5.tar
nixlib-cb68376fcd76601a9cdcdeb2b45f68d3a4204ae5.tar.gz
nixlib-cb68376fcd76601a9cdcdeb2b45f68d3a4204ae5.tar.bz2
nixlib-cb68376fcd76601a9cdcdeb2b45f68d3a4204ae5.tar.lz
nixlib-cb68376fcd76601a9cdcdeb2b45f68d3a4204ae5.tar.xz
nixlib-cb68376fcd76601a9cdcdeb2b45f68d3a4204ae5.tar.zst
nixlib-cb68376fcd76601a9cdcdeb2b45f68d3a4204ae5.zip
frostwire: initial working package
This installs from the official frostwire tarball. Similar to the
jdiskreport package. Everything works fine on the systems I've tried.

I've made myself the maintainer.
Also upgraded it to 6.0.0 as it was released stable.
Diffstat (limited to 'pkgs/applications/networking/p2p')
-rw-r--r--pkgs/applications/networking/p2p/frostwire/default.nix36
1 files changed, 36 insertions, 0 deletions
diff --git a/pkgs/applications/networking/p2p/frostwire/default.nix b/pkgs/applications/networking/p2p/frostwire/default.nix
new file mode 100644
index 000000000000..1a598ad17b0f
--- /dev/null
+++ b/pkgs/applications/networking/p2p/frostwire/default.nix
@@ -0,0 +1,36 @@
+{ 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";
+    sha256 = "73d6e3db9971becf1c5b7faf12b62fa3ac0a243ac06b8b4eada9118f56990177";
+  };
+
+  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 ];
+  };
+}