18 sabctoolsVersion = "8.2.5";
19 sabctoolsHash = "sha256-ZEC813/JpGPEFL+nXKFAXFfUrrhECCIqONe27LwS00g=";
21 pythonEnv = python3.withPackages (
49 # sabnzbd requires a specific version of sabctools
50 (sabctools.overridePythonAttrs (old: {
51 version = sabctoolsVersion;
54 version = sabctoolsVersion;
65 path = lib.makeBinPath [
74 stdenv.mkDerivation rec {
78 src = fetchFromGitHub {
82 hash = "sha256-WJ58OawPSICCWMWQ042T4OmK5UBRZRU5tnLYxGPbDPc=";
85 nativeBuildInputs = [ makeWrapper ];
86 buildInputs = [ pythonEnv ];
94 echo "${pythonEnv}/bin/python $out/SABnzbd.py \$*" > $out/bin/sabnzbd
95 chmod +x $out/bin/sabnzbd
96 wrapProgram $out/bin/sabnzbd --set PATH ${path}
102 tests.smoke-test = nixosTests.sabnzbd;
103 updateScript = ./update.sh;
107 description = "Usenet NZB downloader, par2 repairer and auto extracting server";
108 homepage = "https://sabnzbd.org";
109 license = licenses.gpl2Plus;
110 platforms = platforms.linux;
111 maintainers = with lib.maintainers; [
115 mainProgram = "sabnzbd";