diff options
author | Arseniy Seroka <jagajaga@users.noreply.github.com> | 2014-11-04 23:03:52 +0300 |
---|---|---|
committer | Arseniy Seroka <jagajaga@users.noreply.github.com> | 2014-11-04 23:03:52 +0300 |
commit | a20e2d8f93451b32e30c51b07e9ceaa6d70d772b (patch) | |
tree | 50fa6612fc4e672e71c2e5c7c8b3517c013238bb /pkgs/applications | |
parent | 06eec574504007a2acbe3e42be2ce6c2b22a3a1d (diff) | |
parent | cb68376fcd76601a9cdcdeb2b45f68d3a4204ae5 (diff) | |
download | nixpkgs-a20e2d8f93451b32e30c51b07e9ceaa6d70d772b.tar nixpkgs-a20e2d8f93451b32e30c51b07e9ceaa6d70d772b.tar.gz nixpkgs-a20e2d8f93451b32e30c51b07e9ceaa6d70d772b.tar.bz2 nixpkgs-a20e2d8f93451b32e30c51b07e9ceaa6d70d772b.tar.lz nixpkgs-a20e2d8f93451b32e30c51b07e9ceaa6d70d772b.tar.xz nixpkgs-a20e2d8f93451b32e30c51b07e9ceaa6d70d772b.tar.zst nixpkgs-a20e2d8f93451b32e30c51b07e9ceaa6d70d772b.zip |
Merge pull request #4779 from gavinrogers/master
frostwire: initial working package
Diffstat (limited to 'pkgs/applications')
-rw-r--r-- | pkgs/applications/networking/p2p/frostwire/default.nix | 36 |
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 00000000000..1a598ad17b0 --- /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 ]; + }; +} |