diff options
-rw-r--r-- | pkgs/servers/sabnzbd/default.nix | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/pkgs/servers/sabnzbd/default.nix b/pkgs/servers/sabnzbd/default.nix index 616d898b33f0d..19990da147c72 100644 --- a/pkgs/servers/sabnzbd/default.nix +++ b/pkgs/servers/sabnzbd/default.nix @@ -1,15 +1,18 @@ -{stdenv, fetchurl, python2, par2cmdline, unzip, unrar, p7zip, makeWrapper}: +{stdenv, fetchFromGitHub, python2, par2cmdline, unzip, unrar, p7zip, makeWrapper}: let pythonEnv = python2.withPackages(ps: with ps; [ pyopenssl cheetah yenc ]); path = stdenv.lib.makeBinPath [ par2cmdline unrar unzip p7zip ]; in stdenv.mkDerivation rec { - version = "1.1.0"; - name = "sabnzbd-${version}"; + version = "1.2.0"; + pname = "sabnzbd"; + name = "${pname}-${version}"; - src = fetchurl { - url = "https://github.com/sabnzbd/sabnzbd/archive/${version}.tar.gz"; - sha256 = "16srhknmjx5x2zsg1m0w9bipcv9b3b96bvb27fkf4dc2aswwcsc7"; + src = fetchFromGitHub { + owner = pname; + repo = pname; + rev = version; + sha256 = "1g1zf0zrlqgparg6hws6agpr414dw2q4xq9l8nh720rn6m7fv4vb"; }; buildInputs = [ pythonEnv makeWrapper ]; |