mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-04 12:53:05 +00:00
f8c4a98e8e
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/'
31 lines
646 B
Nix
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";
|
|
};
|
|
}
|