about summary refs log tree commit diff
path: root/pkgs/servers/sabnzbd/default.nix
diff options
context:
space:
mode:
authorJC Brand <jc@opkode.com>2015-12-13 14:45:14 +0000
committerJC Brand <jc@opkode.com>2015-12-13 14:56:25 +0000
commitb4766c3d43e9192e9e4c4b08a7fbf3483592bf6a (patch)
tree551bc43b07022a2be889791e795ccca83e2ef47e /pkgs/servers/sabnzbd/default.nix
parent5482aa908405dc91867fa6e49eb2eda5c158de52 (diff)
downloadnixlib-b4766c3d43e9192e9e4c4b08a7fbf3483592bf6a.tar
nixlib-b4766c3d43e9192e9e4c4b08a7fbf3483592bf6a.tar.gz
nixlib-b4766c3d43e9192e9e4c4b08a7fbf3483592bf6a.tar.bz2
nixlib-b4766c3d43e9192e9e4c4b08a7fbf3483592bf6a.tar.lz
nixlib-b4766c3d43e9192e9e4c4b08a7fbf3483592bf6a.tar.xz
nixlib-b4766c3d43e9192e9e4c4b08a7fbf3483592bf6a.tar.zst
nixlib-b4766c3d43e9192e9e4c4b08a7fbf3483592bf6a.zip
sabnzbd: Fix OpenSSL wrapping.
- Add SSL support by adding pyopenssl to PYTHONPATH
- Update build script to use wrapPythonProgramsIn
- Update the meta info
Diffstat (limited to 'pkgs/servers/sabnzbd/default.nix')
-rw-r--r--pkgs/servers/sabnzbd/default.nix17
1 files changed, 10 insertions, 7 deletions
diff --git a/pkgs/servers/sabnzbd/default.nix b/pkgs/servers/sabnzbd/default.nix
index 952d3b1196f2..ee2176ae49a1 100644
--- a/pkgs/servers/sabnzbd/default.nix
+++ b/pkgs/servers/sabnzbd/default.nix
@@ -1,21 +1,24 @@
-{stdenv, fetchurl, python, pythonPackages, cheetahTemplate, makeWrapper, par2cmdline, unzip, unrar}:
+{stdenv, fetchurl, python, pythonPackages, par2cmdline, unzip, unrar}:
 
 stdenv.mkDerivation rec {
   version = "0.7.20";
   name = "sabnzbd-${version}";
-  
+
   src = fetchurl {
     url = "mirror://sourceforge/sabnzbdplus/SABnzbd-${version}-src.tar.gz";
     sha256 = "0hl7mwgyvm4d68346s7vlv0qlibfh2p2idpyzpjfvk8f79hs9cr0";
   };
 
-  buildInputs = [makeWrapper python sqlite3 cheetahTemplate];
-  inherit stdenv python cheetahTemplate par2cmdline unzip unrar; 
-  inherit (pythonPackages) sqlite3;
+  pythonPath = with pythonPackages; [ pyopenssl sqlite3 cheetah ];
+  buildInputs = with pythonPackages; [wrapPython];
+  inherit python par2cmdline unzip unrar;
 
   builder = ./builder.sh;
-  
-  meta = {
+
+  meta = with stdenv.lib; {
     description = "Usenet NZB downloader, par2 repairer and auto extracting server";
+    homepage = http://sabnzbd.org;
+    license = licenses.gpl2Plus;
+    platforms = platforms.linux;
   };
 }