depot/third_party/nixpkgs/pkgs/tools/networking/rosenpass/tools.nix
Default email e7ec2969af Project import generated by Copybara.
GitOrigin-RevId: 9b19f5e77dd906cb52dade0b7bd280339d2a1f3d
2024-01-13 09:15:51 +01:00

30 lines
650 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 = "The Rosenpass tool `rp`, which is a script that wraps the `rosenpass` binary";
mainProgram = "rp";
};
}