nixpkgs/pkgs/tools/networking/rosenpass/tools.nix
Alexis Hildebrandt f8c4a98e8e treewide: Remove the definite article from meta.description
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"([Tt]he)? ' pkgs \
  | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Tt]he (.)/\1\U\2/'
2024-06-09 23:08:46 +02:00

31 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";
};
}