2015-11-22 11:35:11 -08:00
|
|
|
{ stdenv, fetchFromGitHub, fetchpatch, boost, zlib, openssl }:
|
2014-11-09 00:44:47 -08:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
|
2015-07-07 00:47:22 -07:00
|
|
|
name = pname + "-" + version;
|
|
|
|
pname = "i2pd";
|
2017-06-01 21:31:29 -07:00
|
|
|
version = "2.14.0";
|
2014-11-09 00:44:47 -08:00
|
|
|
|
2015-07-07 00:47:22 -07:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "PurpleI2P";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2017-06-01 21:31:29 -07:00
|
|
|
sha256 = "1nlnzvb4n351zwg4vd15qjmm8xvbmn2350vfnd249q06va62fqjk";
|
2014-11-09 00:44:47 -08:00
|
|
|
};
|
|
|
|
|
2015-11-19 23:27:31 -08:00
|
|
|
buildInputs = [ boost zlib openssl ];
|
2017-05-30 07:48:20 -07:00
|
|
|
makeFlags = [ "USE_AESNI=no" "USE_AVX=no" ];
|
2015-11-22 11:35:11 -08:00
|
|
|
|
2014-11-09 00:44:47 -08:00
|
|
|
installPhase = ''
|
2015-12-29 00:17:06 -08:00
|
|
|
install -D i2pd $out/bin/i2pd
|
2014-11-09 00:44:47 -08:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2017-05-30 07:48:35 -07:00
|
|
|
homepage = "https://i2pd.website";
|
2014-11-09 00:44:47 -08:00
|
|
|
description = "Minimal I2P router written in C++";
|
2015-04-21 09:05:19 -07:00
|
|
|
license = licenses.gpl2;
|
2014-11-09 00:44:47 -08:00
|
|
|
maintainers = with maintainers; [ edwtjo ];
|
2015-03-20 08:52:02 -07:00
|
|
|
platforms = platforms.linux;
|
2014-11-09 00:44:47 -08:00
|
|
|
};
|
2015-03-20 08:52:02 -07:00
|
|
|
}
|