From cb68376fcd76601a9cdcdeb2b45f68d3a4204ae5 Mon Sep 17 00:00:00 2001 From: Gavin Rogers Date: Sun, 2 Nov 2014 14:10:03 +0000 Subject: [PATCH] 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. --- lib/maintainers.nix | 1 + .../networking/p2p/frostwire/default.nix | 36 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 3 files changed, 39 insertions(+) create mode 100644 pkgs/applications/networking/p2p/frostwire/default.nix diff --git a/lib/maintainers.nix b/lib/maintainers.nix index 2c2dad4169f4..8a0853ad7e7f 100644 --- a/lib/maintainers.nix +++ b/lib/maintainers.nix @@ -64,6 +64,7 @@ fuuzetsu = "Mateusz Kowalczyk "; gal_bolle = "Florent Becker "; garbas = "Rok Garbas "; + gavin = "Gavin Rogers "; goibhniu = "Cillian de RĂ³iste "; guibert = "David Guibert "; hinton = "Tom Hinton "; 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 <