{ stdenv, fetchFromGitHub, boost, zlib, openssl }: stdenv.mkDerivation rec { name = pname + "-" + version; pname = "i2pd"; version = "2.1.0"; src = fetchFromGitHub { owner = "PurpleI2P"; repo = pname; rev = version; sha256 = "06y6pi0wlxpasncm4qq30sh0cavwl2f4gdz0hss70if8mr6z9hyq"; }; buildInputs = [ boost zlib openssl ]; installPhase = '' install -D i2p $out/bin/i2p ''; meta = with stdenv.lib; { homepage = "https://track.privacysolutions.no/projects/i2pd"; description = "Minimal I2P router written in C++"; license = licenses.gpl2; maintainers = with maintainers; [ edwtjo ]; platforms = platforms.linux; }; }