depot/third_party/nixpkgs/pkgs/by-name/wu/wush/package.nix
Default email 472aeafc57 Project import generated by Copybara.
GitOrigin-RevId: c31898adf5a8ed202ce5bea9f347b1c6871f32d1
2024-10-04 18:56:33 +02:00

36 lines
761 B
Nix

{
buildGoModule,
fetchFromGitHub,
lib,
}:
let
version = "0.3.0";
in
buildGoModule {
pname = "wush";
inherit version;
src = fetchFromGitHub {
owner = "coder";
repo = "wush";
rev = "v${version}";
hash = "sha256-2mFe1p15HRyy86pw5LoBtiW9lKrw/N9V81/jkiT4jo4=";
};
vendorHash = "sha256-Po1DDKP9ekScRDGMjCXZr9HUUwFenQx3bzIZrNI+ctY=";
ldflags = [
"-s -w -X main.version=${version}"
];
CGO_ENABLED = 0;
meta = with lib; {
homepage = "https://github.com/coder/wush";
description = "Transfer files between computers via WireGuard";
changelog = "https://github.com/coder/wush/releases/tag/v${version}";
license = licenses.cc0;
mainProgram = "wush";
maintainers = with maintainers; [ abbe ];
};
}