mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-11 15:27:20 +03:00
Added sabnzbd usenet download tool :)
svn path=/nixpkgs/trunk/; revision=18293
This commit is contained in:
parent
c28701c3d9
commit
a83def2812
16
pkgs/servers/sabnzbd/builder.sh
Normal file
16
pkgs/servers/sabnzbd/builder.sh
Normal file
@ -0,0 +1,16 @@
|
||||
source $stdenv/setup
|
||||
|
||||
tar xvfz $src
|
||||
mv SABnzbd-* $out
|
||||
|
||||
-- Create a start script and let wrapProgram with toPythonPath wrap it so that python is started with cheetahTemplate in its importpath (classpath)
|
||||
mkdir $out/bin
|
||||
echo "$python/bin/python $out/SABnzbd.py" > $out/bin/sabnzbd.sh
|
||||
chmod +x $out/bin/sabnzbd.sh
|
||||
|
||||
for i in $(cd $out/bin && ls); do
|
||||
wrapProgram $out/bin/$i \
|
||||
--prefix PYTHONPATH : "$(toPythonPath $python):$(toPythonPath $out):$(toPythonPath $cheetahTemplate)"
|
||||
done
|
||||
|
||||
echo $out
|
19
pkgs/servers/sabnzbd/default.nix
Normal file
19
pkgs/servers/sabnzbd/default.nix
Normal file
@ -0,0 +1,19 @@
|
||||
{stdenv, fetchurl, python, cheetahTemplate, makeWrapper}:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
name = "sabnzbd-0.4.12";
|
||||
|
||||
src = fetchurl {
|
||||
url = http://mesh.dl.sourceforge.net/project/sabnzbdplus/sabnzbdplus/sabnzbd-0.4.12/SABnzbd-0.4.12-src.tar.gz;
|
||||
sha256 = "35ce4172688925ef608fba433ff676357dab7d2abdc1cf83112a1c99682fdd32";
|
||||
};
|
||||
|
||||
buildInputs = [makeWrapper python cheetahTemplate];
|
||||
inherit stdenv python cheetahTemplate;
|
||||
|
||||
builder = ./builder.sh;
|
||||
|
||||
meta = {
|
||||
description = "Usenet NZB downloader, par2 repairer and auto extracting server.";
|
||||
};
|
||||
}
|
Loading…
Reference in New Issue
Block a user