nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildGoModule,
4 fetchFromGitHub,
5 nix-update-script,
6}:
7
8buildGoModule (finalAttrs: {
9 pname = "lazyssh";
10 version = "0.3.0";
11
12 src = fetchFromGitHub {
13 owner = "Adembc";
14 repo = "lazyssh";
15 tag = "v${finalAttrs.version}";
16 hash = "sha256-6halWoLu9Vp6XU57wAQXaWBwKzqpnyoxJORzCbyeU5Q=";
17 };
18
19 vendorHash = "sha256-OMlpqe7FJDqgppxt4t8lJ1KnXICOh6MXVXoKkYJ74Ks=";
20
21 ldflags = [
22 "-X=main.version=${finalAttrs.version}"
23 "-X=main.gitCommit=v${finalAttrs.version}"
24 ];
25
26 postInstall = ''
27 mv $out/bin/cmd $out/bin/lazyssh
28 '';
29
30 passthru.updateScript = nix-update-script { };
31
32 meta = {
33 description = "Terminal-based SSH manager";
34 homepage = "https://github.com/Adembc/lazyssh";
35 changelog = "https://github.com/Adembc/lazyssh/releases/tag/v${finalAttrs.version}";
36 license = lib.licenses.asl20;
37 maintainers = with lib.maintainers; [ kpbaks ];
38 mainProgram = "lazyssh";
39 };
40})