summary refs log tree commit diff
diff options
context:
space:
mode:
authorDomen Kožar <domen@dev.si>2014-09-05 22:49:18 +0200
committerDomen Kožar <domen@dev.si>2014-09-05 22:49:31 +0200
commitb420eeba44c8428bf90f4655d94cc336c49ffec4 (patch)
tree3c28ea2408dc4e7d13b5ad50c9fad6a32083c201
parent718106e958cbd872ecf3e08a451b80f68f950dae (diff)
downloadnixlib-b420eeba44c8428bf90f4655d94cc336c49ffec4.tar
nixlib-b420eeba44c8428bf90f4655d94cc336c49ffec4.tar.gz
nixlib-b420eeba44c8428bf90f4655d94cc336c49ffec4.tar.bz2
nixlib-b420eeba44c8428bf90f4655d94cc336c49ffec4.tar.lz
nixlib-b420eeba44c8428bf90f4655d94cc336c49ffec4.tar.xz
nixlib-b420eeba44c8428bf90f4655d94cc336c49ffec4.tar.zst
nixlib-b420eeba44c8428bf90f4655d94cc336c49ffec4.zip
remove bittorrent package since it's obsolete
-rw-r--r--doc/quick-start.xml11
-rw-r--r--nixos/tests/bittorrent.nix2
-rw-r--r--pkgs/tools/networking/p2p/bittorrent/builder.sh27
-rw-r--r--pkgs/tools/networking/p2p/bittorrent/default.nix24
-rw-r--r--pkgs/top-level/release.nix1
5 files changed, 1 insertions, 64 deletions
diff --git a/doc/quick-start.xml b/doc/quick-start.xml
index 0f11a906d771..c0f96f871529 100644
--- a/doc/quick-start.xml
+++ b/doc/quick-start.xml
@@ -93,17 +93,6 @@ $ git add pkgs/development/libraries/libfoo/default.nix</screen>
         </listitem>
 
         <listitem>
-          <para>BitTorrent (wxPython-based): <link
-          xlink:href="https://github.com/NixOS/nixpkgs/blob/master/pkgs/tools/networking/p2p/bittorrent/default.nix"><filename>pkgs/tools/networking/p2p/bittorrent/default.nix</filename></link>.
-          Uses an external <link
-          xlink:href="https://github.com/NixOS/nixpkgs/blob/master/pkgs/tools/networking/p2p/bittorrent/builder.sh">build
-          script</link>, which can be useful if you have lots of code
-          that you don’t want cluttering up the Nix expression.  But
-          external builders are mostly obsolete.
-          </para>
-        </listitem>
-
-        <listitem>
           <para>Thunderbird: <link
           xlink:href="https://github.com/NixOS/nixpkgs/blob/master/pkgs/applications/networking/mailreaders/thunderbird/default.nix"><filename>pkgs/applications/networking/mailreaders/thunderbird/default.nix</filename></link>.
           Lots of dependencies.</para>
diff --git a/nixos/tests/bittorrent.nix b/nixos/tests/bittorrent.nix
index b12a861f723a..c4a00ee507b2 100644
--- a/nixos/tests/bittorrent.nix
+++ b/nixos/tests/bittorrent.nix
@@ -28,7 +28,7 @@ in
   nodes =
     { tracker =
         { config, pkgs, ... }:
-        { environment.systemPackages = [ pkgs.transmission pkgs.bittorrent ];
+        { environment.systemPackages = [ pkgs.transmission ];
 
           # We need Apache on the tracker to serve the torrents.
           services.httpd.enable = true;
diff --git a/pkgs/tools/networking/p2p/bittorrent/builder.sh b/pkgs/tools/networking/p2p/bittorrent/builder.sh
deleted file mode 100644
index 3f30aa5c851f..000000000000
--- a/pkgs/tools/networking/p2p/bittorrent/builder.sh
+++ /dev/null
@@ -1,27 +0,0 @@
-source $stdenv/setup
-
-
-# Workaround for:
-#  File "...-python-2.4.4/lib/python2.4/posixpath.py", line 62, in join
-#    elif path == '' or path.endswith('/'):
-# AttributeError: 'NoneType' object has no attribute 'endswith'
-export HOME=$TMP
-
-
-buildPhase() {
-    python setup.py build
-}
-
-
-installPhase() {
-    python setup.py install --prefix=$out
-
-    # Create wrappers that set the environment correctly.
-    for i in $(cd $out/bin && ls); do
-        wrapProgram $out/bin/$i \
-            --set PYTHONPATH "$(toPythonPath $out):$PYTHONPATH"
-    done
-}
-
-
-genericBuild
diff --git a/pkgs/tools/networking/p2p/bittorrent/default.nix b/pkgs/tools/networking/p2p/bittorrent/default.nix
deleted file mode 100644
index 1d4f43445bf1..000000000000
--- a/pkgs/tools/networking/p2p/bittorrent/default.nix
+++ /dev/null
@@ -1,24 +0,0 @@
-{ gui ? false
-, stdenv, fetchurl, makeWrapper
-, python, wxPython ? null, pycrypto, twisted
-}:
-
-assert gui -> wxPython != null;
-
-stdenv.mkDerivation {
-  name = "bittorrent-5.2.2";
-  
-  builder = ./builder.sh;
-  
-  src = fetchurl {
-    url = http://download.bittorrent.com/dl/archive/BitTorrent-5.2.2.tar.gz;
-    sha256 = "05k803hbwsyn51j4aibzdsnqxz24kw4rvr60v2c0wji8gcvy3kx9";
-  };
-  
-  buildInputs = [ python pycrypto twisted makeWrapper ]
-    ++ stdenv.lib.optional gui wxPython;
-
-  meta = {
-    description = "The original client for the BitTorrent peer-to-peer file sharing protocol";
-  };
-}
diff --git a/pkgs/top-level/release.nix b/pkgs/top-level/release.nix
index 07c3126e5abe..ccd674a42d86 100644
--- a/pkgs/top-level/release.nix
+++ b/pkgs/top-level/release.nix
@@ -64,7 +64,6 @@ let
       binutils = linux;
       bind = linux;
       bitlbee = linux;
-      bittorrent = linux;
       blender = linux;
       bsdiff = all;
       btrfsProgs = linux;