about summary refs log tree commit diff
path: root/pkgs/tools/networking/sshed/default.nix
blob: ac221f49ed2b4017bd90220e5d3148c0e2cf9787 (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
{ lib
, buildGoModule
, fetchFromGitHub
}:

buildGoModule rec {
  pname = "sshed";
  version = "1.2.0";

  src = fetchFromGitHub {
    owner = "trntv";
    repo = pname;
    rev = version;
    hash = "sha256-y8IQzOGs78T44jLcNNjPlfopyptX3Mhv2LdawqS1T+U=";
  };

  vendorHash = "sha256-21Vh5Zaja5rx9RVCTFQquNvMNvaUlUV6kfhkIvXwbVw=";

  postFixup = ''
    mv $out/bin/cmd $out/bin/sshed
  '';

  meta = with lib; {
    description = "ssh config editor and bookmarks manager";
    homepage = "https://github.com/trntv/sshed";
    license = licenses.asl20;
    maintainers = with maintainers; [ ocfox ];
    mainProgram = "sshed";
  };
}