depot/third_party/nixpkgs/pkgs/tools/networking/rosenpass/tools.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

30 lines
646 B
Nix

{ lib
, stdenv
, makeWrapper
, installShellFiles
, coreutils
, findutils
, gawk
, rosenpass
, wireguard-tools
}:
stdenv.mkDerivation {
inherit (rosenpass) version src;
pname = "rosenpass-tools";
nativeBuildInputs = [ makeWrapper installShellFiles ];
postInstall = ''
install -D $src/rp $out/bin/rp
installManPage $src/doc/rp.1
wrapProgram $out/bin/rp \
--prefix PATH : ${lib.makeBinPath [
coreutils findutils gawk rosenpass wireguard-tools
]}
'';
meta = rosenpass.meta // {
description = "Rosenpass tool `rp`, which is a script that wraps the `rosenpass` binary";
mainProgram = "rp";
};
}