8 rustPlatform.buildRustPackage rec {
12 src = fetchFromGitHub {
13 owner = "fujiapple852";
16 hash = "sha256-ArSIeu3u+TUy18rzJvhq0+/qvi5xPZmtQ7rPpwaEx9g=";
19 nativeBuildInputs = [ installShellFiles ];
21 cargoHash = "sha256-h1NQQFjtlpQuyTz7AHuAPUe1GxR0Q2yKzow8XB9375U=";
23 postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
24 local INSTALL="$out/bin/trip"
25 installShellCompletion --cmd trip \
26 --bash <($out/bin/trip --generate bash) \
27 --fish <($out/bin/trip --generate fish) \
28 --zsh <($out/bin/trip --generate zsh)
32 description = "Network diagnostic tool";
33 homepage = "https://trippy.cli.rs";
34 changelog = "https://github.com/fujiapple852/trippy/blob/${src.rev}/CHANGELOG.md";
35 license = licenses.asl20;
36 maintainers = with maintainers; [ figsoda ];