Merge pull request #67641 from suhr/i2p

i2p: 0.9.41 -> 0.9.42
This commit is contained in:
Mario Rodas 2019-09-15 16:33:15 -05:00 committed by GitHub
commit 6091d14c58
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3,11 +3,14 @@
let wrapper = stdenv.mkDerivation rec {
pname = "wrapper";
version = "3.5.35";
src = fetchurl {
url = "https://wrapper.tanukisoftware.com/download/${version}/wrapper_${version}_src.tar.gz";
sha256 = "0mjyw9ays9v6lnj21pmfd3qdvd9b6rwxfmw3pg6z0kyf2jadixw2";
};
buildInputs = [ jdk ];
buildPhase = ''
export ANT_HOME=${ant}
export JAVA_HOME=${jdk}/lib/openjdk/jre/
@ -16,6 +19,7 @@ let wrapper = stdenv.mkDerivation rec {
sed 's/ testsuite$//' -i src/c/Makefile-linux-x86-64.make
${if stdenv.isi686 then "./build32.sh" else "./build64.sh"}
'';
installPhase = ''
mkdir -p $out/{bin,lib}
cp bin/wrapper $out/bin/wrapper
@ -27,17 +31,22 @@ let wrapper = stdenv.mkDerivation rec {
in
stdenv.mkDerivation rec {
name = "i2p-0.9.41";
pname = "i2p";
version = "0.9.42";
src = fetchurl {
url = "https://github.com/i2p/i2p.i2p/archive/${name}.tar.gz";
sha256 = "0adrj56i3pcc9ainj22akjrrvy73carz5jk29qa1h2b9q03di73b";
url = "https://download.i2p2.de/releases/${version}/i2psource_${version}.tar.bz2";
sha256 = "04y71hzkdpjzbac569rhyg1zfx37j0alggbl9gnkaqfbprb2nj1h";
};
buildInputs = [ jdk ant gettext which ];
patches = [ ./i2p.patch ];
buildPhase = ''
export JAVA_TOOL_OPTIONS="-Dfile.encoding=UTF8"
ant preppkg-linux-only
'';
'';
installPhase = ''
set -B
mkdir -p $out/{bin,share}
@ -61,13 +70,13 @@ stdenv.mkDerivation rec {
mv $out/man $out/share/
chmod +x $out/bin/* $out/i2psvc
rm $out/{osid,postinstall.sh,INSTALL-headless.txt}
'';
'';
meta = with stdenv.lib; {
homepage = https://geti2p.net;
description = "Applications and router for I2P, anonymity over the Internet";
maintainers = [ maintainers.joelmo ];
homepage = "https://geti2p.net";
license = licenses.gpl2;
platforms = [ "x86_64-linux" "i686-linux" ];
maintainers = [ maintainers.joelmo ];
};
}