nixpkgs/pkgs/tools/security/sshocker/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

33 lines
769 B
Nix
Raw Normal View History

2023-05-02 22:33:15 +01:00
{ lib
, buildGoModule
, fetchFromGitHub
}:
buildGoModule rec {
pname = "sshocker";
2023-09-13 07:36:39 +01:00
version = "0.3.3";
2023-05-02 22:33:15 +01:00
src = fetchFromGitHub {
owner = "lima-vm";
repo = "sshocker";
rev = "refs/tags/v${version}";
2023-09-13 07:36:39 +01:00
hash = "sha256-Z1Dg+AeyfFmUDc3jV8/tOcUrxuyInfwubzo0cLpfFl8=";
2023-05-02 22:33:15 +01:00
};
2023-09-13 07:36:39 +01:00
vendorHash = "sha256-ceQzYByJNXr02IDBKhYuqnKfaTbnX5T03p2US4HRu6I=";
2023-05-02 22:33:15 +01:00
ldflags = [
"-s"
"-w"
"-X=github.com/lima-vm/sshocker/pkg/version.Version=${version}"
];
meta = with lib; {
description = "Tool for SSH, reverse sshfs and port forwarder";
homepage = "https://github.com/lima-vm/sshocker";
changelog = "https://github.com/lima-vm/sshocker/releases/tag/v${version}";
license = licenses.asl20;
maintainers = with maintainers; [ fab ];
};
}