nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
fork

Configure Feed

Select the types of activity you want to include in your feed.

at devShellTools-shell 52 lines 1.2 kB view raw
1{ 2 lib, 3 stdenv, 4 buildGoModule, 5 fetchFromGitHub, 6 openssh, 7 makeWrapper, 8 ps, 9}: 10 11buildGoModule rec { 12 pname = "assh"; 13 version = "2.16.0"; 14 15 src = fetchFromGitHub { 16 repo = "advanced-ssh-config"; 17 owner = "moul"; 18 rev = "v${version}"; 19 sha256 = "sha256-rvJJZqVSBdaJ154NV6RaxbymsSsHbKnlJDeR6KHQE7M="; 20 }; 21 22 vendorHash = "sha256-L2Uo/jsMtxQClF1UDa7NIUbOm7BflvncNsjqGnCsPKo="; 23 24 ldflags = [ 25 "-s" 26 "-w" 27 "-X moul.io/assh/v2/pkg/version.Version=${version}" 28 ]; 29 30 nativeBuildInputs = [ makeWrapper ]; 31 32 nativeCheckInputs = lib.optionals stdenv.hostPlatform.isDarwin [ ps ]; 33 34 postInstall = '' 35 wrapProgram "$out/bin/assh" \ 36 --prefix PATH : ${openssh}/bin 37 ''; 38 39 doInstallCheck = true; 40 installCheckPhase = '' 41 $out/bin/assh --help > /dev/null 42 ''; 43 44 meta = { 45 description = "Advanced SSH config - Regex, aliases, gateways, includes and dynamic hosts"; 46 homepage = "https://github.com/moul/assh"; 47 changelog = "https://github.com/moul/assh/releases/tag/v${version}"; 48 license = lib.licenses.mit; 49 maintainers = with lib.maintainers; [ ]; 50 platforms = with lib.platforms; linux ++ darwin; 51 }; 52}