2c76a4cb41
GitOrigin-RevId: c757e9bd77b16ca2e03c89bf8bc9ecb28e0c06ad
30 lines
673 B
Nix
30 lines
673 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 = "This package contains the Rosenpass tool `rp`, which is a script that wraps the `rosenpass` binary.";
|
|
mainProgram = "rp";
|
|
};
|
|
}
|