about summary refs log tree commit diff
path: root/nixpkgs/pkgs/tools/networking/wg-friendly-peer-names/default.nix
blob: eaa8efbcebdba64d3e8b2f53d2cd902b07dde032 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
{ stdenv
, lib
, fetchFromGitHub
, wireguard-tools
}:

stdenv.mkDerivation {
  pname = "wg-friendly-peer-names";
  version = "unstable-2021-11-08";

  src = fetchFromGitHub {
    owner = "FlyveHest";
    repo = "wg-friendly-peer-names";
    rev = "66b9b6b74ec77b9fec69b2a58296635321d4f5f1";
    sha256 = "pH/b5rCHIqLxz/Fnx+Dm0m005qAUWBsczSU9vGEQ2RQ=";
  };

  installPhase = ''
    install -D wgg.sh $out/bin/wgg
  '';

  meta = with lib; {
    homepage = "https://github.com/FlyveHest/wg-friendly-peer-names";
    description = "Small shellscript that makes it possible to give peers a friendlier and more readable name in the `wg` peer list";
    license = licenses.mit;
    platforms = wireguard-tools.meta.platforms;
    maintainers = with maintainers; [ mkg20001 ];
    mainProgram = "wgg";
  };
}