2010-04-10 11:47:30 +01:00
|
|
|
{stdenv, fetchurl, perl, WWWMechanize, LWP, makeWrapper}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "slimrat-1.0";
|
|
|
|
src = fetchurl {
|
|
|
|
url = http://slimrat.googlecode.com/files/slimrat-1.0.tar.bz2;
|
|
|
|
sha256 = "139b71d45k4b1y47iq62a9732cnaqqbh8s4knkrgq2hx0jxpsk5a";
|
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ perl WWWMechanize LWP makeWrapper ];
|
|
|
|
|
|
|
|
patchPhase = ''
|
|
|
|
sed -e 's,#!.*,#!${perl}/bin/perl,' -i src/{slimrat,slimrat-gui}
|
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
2012-01-18 20:16:00 +00:00
|
|
|
mkdir -p $out/share/slimrat $out/bin
|
2010-04-10 11:47:30 +01:00
|
|
|
cp -R src/* $out/share/slimrat
|
|
|
|
# slimrat-gui does not work (it needs the Gtk2 perl package)
|
|
|
|
for i in slimrat; do
|
|
|
|
makeWrapper $out/share/slimrat/$i $out/bin/$i \
|
|
|
|
--prefix PERL5LIB : $PERL5LIB
|
|
|
|
done
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = http://code.google.com/p/slimrat/;
|
|
|
|
description = "Linux Rapidshare downloader";
|
2014-12-20 23:00:35 +00:00
|
|
|
license = stdenv.lib.licenses.mit;
|
2010-04-10 11:47:30 +01:00
|
|
|
};
|
|
|
|
}
|