14 src = fetchFromGitHub {
15 repo = "advanced-ssh-config";
18 sha256 = "sha256-rvJJZqVSBdaJ154NV6RaxbymsSsHbKnlJDeR6KHQE7M=";
21 vendorHash = "sha256-L2Uo/jsMtxQClF1UDa7NIUbOm7BflvncNsjqGnCsPKo=";
24 "-s" "-w" "-X moul.io/assh/v2/pkg/version.Version=${version}"
27 nativeBuildInputs = [ makeWrapper ];
29 nativeCheckInputs = lib.optionals stdenv.hostPlatform.isDarwin [ ps ];
32 wrapProgram "$out/bin/assh" \
33 --prefix PATH : ${openssh}/bin
36 doInstallCheck = true;
37 installCheckPhase = ''
38 $out/bin/assh --help > /dev/null
42 description = "Advanced SSH config - Regex, aliases, gateways, includes and dynamic hosts";
43 homepage = "https://github.com/moul/assh";
44 changelog = "https://github.com/moul/assh/releases/tag/v${version}";
45 license = licenses.mit;
46 maintainers = with maintainers; [ zzamboni ];
47 platforms = with platforms; linux ++ darwin;