Unverified Commit 20a4d388 authored by Arne Keller's avatar Arne Keller Committed by GitHub
Browse files

i2pd-tools: init at 2.56.0 (#387286)

parents f91f0804 86ced763
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -16452,6 +16452,12 @@
    githubId = 220262;
    name = "Ion Mudreac";
  };
  MulliganSecurity = {
    email = "mulligansecurity@riseup.net";
    github = "MulliganSecurity";
    githubId = 196982523;
    name = "MulliganSecurity";
  };
  multisn8 = {
    email = "all-things-nix@multisamplednight.com";
    github = "MultisampledNight";
+50 −0
Original line number Diff line number Diff line
{
  lib,
  stdenv,
  boost,
  fetchFromGitHub,
  openssl,
  zlib,
}:

stdenv.mkDerivation {
  pname = "i2pd-tools";
  version = "2.56.0";

  #tries to access the network during the tests, which fails

  src = fetchFromGitHub {
    owner = "PurpleI2P";
    repo = "i2pd-tools";
    rev = "33fce4b087d92ee90653460bbe7a07cdc0c7b121";
    hash = "sha256-mmCs8AHHKhx1/rDp/Vc1p2W3pufoTa4FcJyJwD919zw=";
    fetchSubmodules = true;
  };

  buildInputs = [
    zlib
    openssl
    boost
  ];
  installPhase = ''
    runHook preInstall

    mkdir -p $out/bin
    for bin in \
        routerinfo keygen vain keyinfo regaddr \
        regaddr_3ld regaddralias x25519 famtool autoconf;
    do
      install -Dm755 $bin -t $out/bin
    done

    runHook postInstall
  '';

  meta = {
    description = "Toolsuite to work with keys and eepsites";
    homepage = "https://github.com/PurpleI2P/i2pd-tools";
    license = lib.licenses.bsd3;
    maintainers = with lib.maintainers; [ MulliganSecurity ];
    mainProgram = "i2pd-tools";
  };
}