nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 39 lines 890 B view raw
1{ 2 lib, 3 buildGoModule, 4 fetchFromGitHub, 5 versionCheckHook, 6}: 7 8buildGoModule rec { 9 pname = "sshocker"; 10 version = "0.3.9"; 11 12 src = fetchFromGitHub { 13 owner = "lima-vm"; 14 repo = "sshocker"; 15 tag = "v${version}"; 16 hash = "sha256-7s5jPMt6q7RUXxwA7rwVXhWGRrwfMc/EcEQxicwEHjs="; 17 }; 18 19 vendorHash = "sha256-FGaZTE8CCZ16ozsZr5MUFNkEy8+nkBYXH55n5TJG4Bg="; 20 21 nativeInstallCheckInputs = [ versionCheckHook ]; 22 23 ldflags = [ 24 "-s" 25 "-w" 26 "-X=github.com/lima-vm/sshocker/pkg/version.Version=${version}" 27 ]; 28 29 doInstallCheck = true; 30 31 meta = { 32 description = "Tool for SSH, reverse sshfs and port forwarder"; 33 homepage = "https://github.com/lima-vm/sshocker"; 34 changelog = "https://github.com/lima-vm/sshocker/releases/tag/v${version}"; 35 license = lib.licenses.asl20; 36 maintainers = with lib.maintainers; [ fab ]; 37 mainProgram = "sshocker"; 38 }; 39}