mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-13 09:13:17 +00:00
31 lines
650 B
Nix
31 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";
|
|
};
|
|
}
|