depot/third_party/nixpkgs/pkgs/shells/nushell/plugins/net.nix
Default email 159e378cbb Project import generated by Copybara.
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
2024-09-19 17:19:46 +03:00

40 lines
909 B
Nix

{
lib,
rustPlatform,
fetchFromGitHub,
stdenv,
IOKit,
CoreFoundation,
unstableGitUpdater,
}:
rustPlatform.buildRustPackage rec {
pname = "nu-plugin-net";
version = "1.7.0";
src = fetchFromGitHub {
owner = "fennewald";
repo = "nu_plugin_net";
rev = "refs/tags/${version}";
hash = "sha256-GOF2CSlsjI8PAmIxj/+mR01X5XMviEM8gj7ZYTbeX7I=";
};
cargoHash = "sha256-2FjKGirjTb6ZjDmhK9ciQzVtWCF8CcYeA+YXcr1oMP4=";
nativeBuildInputs = [ rustPlatform.bindgenHook ];
buildInputs = lib.optionals stdenv.isDarwin [
CoreFoundation
IOKit
];
passthru.updateScript = unstableGitUpdater { };
meta = with lib; {
description = "Nushell plugin to list system network interfaces";
homepage = "https://github.com/fennewald/nu_plugin_net";
license = licenses.mit;
maintainers = with maintainers; [ happysalada ];
mainProgram = "nu_plugin_net";
};
}