depot/third_party/nixpkgs/pkgs/shells/nushell/plugins/net.nix
Default email 2c76a4cb41 Project import generated by Copybara.
GitOrigin-RevId: c757e9bd77b16ca2e03c89bf8bc9ecb28e0c06ad
2023-11-16 04:20:00 +00:00

41 lines
938 B
Nix

{ lib
, rustPlatform
, fetchFromGitHub
, stdenv
, IOKit
, CoreFoundation
, unstableGitUpdater
}:
rustPlatform.buildRustPackage {
pname = "nu-plugin-net";
version = "unstable-2023-10-24";
src = fetchFromGitHub {
owner = "fennewald";
repo = "nu_plugin_net";
rev = "8b63996ea2ff8bf282c9b0f5f6d01960cfe3d074";
hash = "sha256-QFo2cMI41GDBsuPNay5MyVyY+HdrLjAWedz8kDNA3JY=";
};
cargoHash = "sha256-ekfUQOsaWdpDASnRzoYh5Y/p3BnP7rvSYCCWQ6DJDnE=";
nativeBuildInputs = [
rustPlatform.bindgenHook
];
buildInputs = lib.optionals stdenv.isDarwin [
CoreFoundation
IOKit
];
passthru.updateScript = unstableGitUpdater { };
meta = with lib; {
description = "A 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";
};
}