mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-28 01:43:15 +00:00
08ce0ff9b9
Semi-automatic update. These checks were performed: - built on NixOS - ran `/nix/store/3xqw8f0fsgx591sh0b1rbdapbki6faqx-sabnzbd-2.3.2/bin/.sabnzbd-wrapped -h` got 0 exit code - ran `/nix/store/3xqw8f0fsgx591sh0b1rbdapbki6faqx-sabnzbd-2.3.2/bin/.sabnzbd-wrapped --help` got 0 exit code - ran `/nix/store/3xqw8f0fsgx591sh0b1rbdapbki6faqx-sabnzbd-2.3.2/bin/.sabnzbd-wrapped -v` and found version 2.3.2 - ran `/nix/store/3xqw8f0fsgx591sh0b1rbdapbki6faqx-sabnzbd-2.3.2/bin/.sabnzbd-wrapped --version` and found version 2.3.2 - ran `/nix/store/3xqw8f0fsgx591sh0b1rbdapbki6faqx-sabnzbd-2.3.2/bin/sabnzbd -h` got 0 exit code - ran `/nix/store/3xqw8f0fsgx591sh0b1rbdapbki6faqx-sabnzbd-2.3.2/bin/sabnzbd --help` got 0 exit code - ran `/nix/store/3xqw8f0fsgx591sh0b1rbdapbki6faqx-sabnzbd-2.3.2/bin/sabnzbd -v` and found version 2.3.2 - ran `/nix/store/3xqw8f0fsgx591sh0b1rbdapbki6faqx-sabnzbd-2.3.2/bin/sabnzbd --version` and found version 2.3.2 - found 2.3.2 with grep in /nix/store/3xqw8f0fsgx591sh0b1rbdapbki6faqx-sabnzbd-2.3.2 - found 2.3.2 in filename of file in /nix/store/3xqw8f0fsgx591sh0b1rbdapbki6faqx-sabnzbd-2.3.2 cc "@fridh"
37 lines
1.0 KiB
Nix
37 lines
1.0 KiB
Nix
{stdenv, fetchFromGitHub, python2, par2cmdline, unzip, unrar, p7zip, makeWrapper}:
|
|
|
|
let
|
|
pythonEnv = python2.withPackages(ps: with ps; [ cryptography cheetah yenc ]);
|
|
path = stdenv.lib.makeBinPath [ par2cmdline unrar unzip p7zip ];
|
|
in stdenv.mkDerivation rec {
|
|
version = "2.3.2";
|
|
pname = "sabnzbd";
|
|
name = "${pname}-${version}";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = pname;
|
|
repo = pname;
|
|
rev = version;
|
|
sha256 = "0c0ap8bygvz643fgfvvmwshcyfblq2c5jziqwgpf30g6rsbfv2v0";
|
|
};
|
|
|
|
buildInputs = [ pythonEnv makeWrapper ];
|
|
|
|
installPhase = ''
|
|
mkdir -p $out
|
|
cp -R * $out/
|
|
mkdir $out/bin
|
|
echo "${pythonEnv}/bin/python $out/SABnzbd.py \$*" > $out/bin/sabnzbd
|
|
chmod +x $out/bin/sabnzbd
|
|
wrapProgram $out/bin/sabnzbd --set PATH ${path}
|
|
'';
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "Usenet NZB downloader, par2 repairer and auto extracting server";
|
|
homepage = http://sabnzbd.org;
|
|
license = licenses.gpl2Plus;
|
|
platforms = platforms.linux;
|
|
maintainers = with stdenv.lib.maintainers; [ fridh ];
|
|
};
|
|
}
|