2018-12-15 04:50:31 +01:00
|
|
|
{stdenv, fetchurl, perlPackages, makeWrapper}:
|
2010-04-10 12:47:30 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "slimrat-1.0";
|
|
|
|
src = fetchurl {
|
2017-10-27 01:44:19 +02:00
|
|
|
url = "https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/slimrat/slimrat-1.0.tar.bz2";
|
2010-04-10 12:47:30 +02:00
|
|
|
sha256 = "139b71d45k4b1y47iq62a9732cnaqqbh8s4knkrgq2hx0jxpsk5a";
|
|
|
|
};
|
|
|
|
|
2018-12-15 04:50:31 +01:00
|
|
|
buildInputs = [ makeWrapper ] ++ (with perlPackages; [ perl WWWMechanize LWP ]);
|
2010-04-10 12:47:30 +02:00
|
|
|
|
|
|
|
patchPhase = ''
|
2018-12-15 04:50:31 +01:00
|
|
|
sed -e 's,#!.*,#!${perlPackages.perl}/bin/perl,' -i src/{slimrat,slimrat-gui}
|
2010-04-10 12:47:30 +02:00
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
2012-01-18 21:16:00 +01:00
|
|
|
mkdir -p $out/share/slimrat $out/bin
|
2010-04-10 12:47:30 +02: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 = {
|
2017-10-27 01:44:19 +02:00
|
|
|
homepage = https://code.google.com/archive/p/slimrat/;
|
2010-04-10 12:47:30 +02:00
|
|
|
description = "Linux Rapidshare downloader";
|
2014-12-21 00:00:35 +01:00
|
|
|
license = stdenv.lib.licenses.mit;
|
2016-08-02 19:50:55 +02:00
|
|
|
platforms = stdenv.lib.platforms.unix;
|
2017-10-27 01:44:19 +02:00
|
|
|
broken = true; # officially abandonned upstream
|
2010-04-10 12:47:30 +02:00
|
|
|
};
|
|
|
|
}
|