nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at devShellTools-shell 36 lines 763 B view raw
1{ 2 buildGoModule, 3 fetchFromGitHub, 4 lib, 5}: 6let 7 version = "0.4.1"; 8in 9buildGoModule { 10 pname = "wush"; 11 inherit version; 12 13 src = fetchFromGitHub { 14 owner = "coder"; 15 repo = "wush"; 16 rev = "v${version}"; 17 hash = "sha256-K83peIfr1+OHuuq6gdgco0RhfF1tAAewb4pxNT6vV+w="; 18 }; 19 20 vendorHash = "sha256-3/DDtqVj7NNoJlNmKC+Q+XGS182E9OYkKMZ/2viANNQ="; 21 22 ldflags = [ 23 "-s -w -X main.version=${version}" 24 ]; 25 26 env.CGO_ENABLED = 0; 27 28 meta = { 29 homepage = "https://github.com/coder/wush"; 30 description = "Transfer files between computers via WireGuard"; 31 changelog = "https://github.com/coder/wush/releases/tag/v${version}"; 32 license = lib.licenses.cc0; 33 mainProgram = "wush"; 34 maintainers = with lib.maintainers; [ abbe ]; 35 }; 36}