Merge pull request #156745 from Luflosi/i2pd-install-service-and-man-page

i2pd: install systemd service file and man page
This commit is contained in:
Kevin Cox 2022-01-29 07:15:31 -05:00 committed by GitHub
commit 40e6780787
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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; {