2023-11-16 04:20:00 +00:00
|
|
|
{ lib
|
|
|
|
, rustPlatform
|
|
|
|
, fetchFromGitHub
|
|
|
|
, stdenv
|
|
|
|
, IOKit
|
|
|
|
, CoreFoundation
|
|
|
|
, unstableGitUpdater
|
|
|
|
}:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage {
|
|
|
|
pname = "nu-plugin-net";
|
2024-05-15 15:35:15 +00:00
|
|
|
version = "0-unstable-2024-04-05";
|
2023-11-16 04:20:00 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "fennewald";
|
|
|
|
repo = "nu_plugin_net";
|
2024-04-21 15:54:59 +00:00
|
|
|
rev = "a84d72290f513397a359581b9447a4e638ce60c9";
|
|
|
|
hash = "sha256-uKLYTRR2tThSvwWbvEePOLZ9ehNPfCYruZxTKSIxpEA=";
|
2023-11-16 04:20:00 +00:00
|
|
|
};
|
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
cargoHash = "sha256-BsCOej31vfTf+Wca4+AjxkhXz6wpMRFJmGBsUqOj2U0=";
|
2023-11-16 04:20:00 +00:00
|
|
|
|
|
|
|
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";
|
|
|
|
};
|
|
|
|
}
|