nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 stdenv,
4 boost,
5 fetchFromGitHub,
6 openssl,
7 zlib,
8}:
9
10stdenv.mkDerivation {
11 pname = "i2pd-tools";
12 version = "2.56.0";
13
14 #tries to access the network during the tests, which fails
15
16 src = fetchFromGitHub {
17 owner = "PurpleI2P";
18 repo = "i2pd-tools";
19 rev = "33fce4b087d92ee90653460bbe7a07cdc0c7b121";
20 hash = "sha256-mmCs8AHHKhx1/rDp/Vc1p2W3pufoTa4FcJyJwD919zw=";
21 fetchSubmodules = true;
22 };
23
24 buildInputs = [
25 zlib
26 openssl
27 boost
28 ];
29 installPhase = ''
30 runHook preInstall
31
32 mkdir -p $out/bin
33 for bin in \
34 routerinfo keygen vain keyinfo regaddr \
35 regaddr_3ld regaddralias x25519 famtool autoconf;
36 do
37 install -Dm755 $bin -t $out/bin
38 done
39
40 runHook postInstall
41 '';
42
43 meta = {
44 description = "Toolsuite to work with keys and eepsites";
45 homepage = "https://github.com/PurpleI2P/i2pd-tools";
46 license = lib.licenses.bsd3;
47 maintainers = with lib.maintainers; [ MulliganSecurity ];
48 mainProgram = "i2pd-tools";
49 };
50}