diff options
author | Luflosi <luflosi@luflosi.de> | 2022-01-25 17:42:56 +0100 |
---|---|---|
committer | Luflosi <luflosi@luflosi.de> | 2022-01-25 19:10:34 +0100 |
commit | 577d4ef2399de727e3b0b720e08b90225595344c (patch) | |
tree | 3301966fa80f31e711c200bd9f3168fc028a7d1a /pkgs/tools/networking/i2pd | |
parent | 04560b91633221bc80a5e2aefe75280a4b46bff5 (diff) |
i2pd: install systemd service file and man page
The systemd service file could be useful in the future for use in the i2pd NixOS module.
Diffstat (limited to 'pkgs/tools/networking/i2pd')
-rw-r--r-- | pkgs/tools/networking/i2pd/default.nix | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/pkgs/tools/networking/i2pd/default.nix b/pkgs/tools/networking/i2pd/default.nix index 7c034a03e2e9d..8bdd18c8eab06 100644 --- a/pkgs/tools/networking/i2pd/default.nix +++ b/pkgs/tools/networking/i2pd/default.nix @@ -1,4 +1,5 @@ { lib, stdenv, fetchFromGitHub +, installShellFiles , boost, zlib, openssl , upnpSupport ? true, miniupnpc ? null , aesniSupport ? stdenv.hostPlatform.aesSupport @@ -21,6 +22,10 @@ stdenv.mkDerivation rec { buildInputs = with lib; [ boost zlib openssl ] ++ optional upnpSupport miniupnpc; + nativeBuildInputs = [ + installShellFiles + ]; + makeFlags = let ynf = a: b: a + "=" + (if b then "yes" else "no"); in [ (ynf "USE_AESNI" aesniSupport) @@ -32,6 +37,8 @@ stdenv.mkDerivation rec { installPhase = '' install -D i2pd $out/bin/i2pd + install --mode=444 -D 'contrib/i2pd.service' "$out/etc/systemd/system/i2pd.service" + installManPage 'debian/i2pd.1' ''; meta = with lib; { |