2024-06-20 14:57:18 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
rustPlatform,
|
|
|
|
fetchFromGitHub,
|
|
|
|
stdenv,
|
|
|
|
IOKit,
|
|
|
|
CoreFoundation,
|
|
|
|
unstableGitUpdater,
|
2023-11-16 04:20:00 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
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-06-05 15:53:02 +00:00
|
|
|
rev = "60d315afb19c3c673409db796a4cc7a240058605";
|
|
|
|
hash = "sha256-izIxV2rFxZ1Om6NNaofNpc5prtN/lsw8dC4DyKEQ+v8=";
|
2023-11-16 04:20:00 +00:00
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
cargoHash = "sha256-nBxcxADyvPgGrfkW8eBq/wmB2Slq+YGJV2IlxuuCgCg=";
|
2023-11-16 04:20:00 +00:00
|
|
|
|
2024-06-20 14:57:18 +00:00
|
|
|
nativeBuildInputs = [ rustPlatform.bindgenHook ];
|
2023-11-16 04:20:00 +00:00
|
|
|
|
|
|
|
buildInputs = lib.optionals stdenv.isDarwin [
|
|
|
|
CoreFoundation
|
|
|
|
IOKit
|
|
|
|
];
|
|
|
|
|
|
|
|
passthru.updateScript = unstableGitUpdater { };
|
|
|
|
|
|
|
|
meta = with lib; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Nushell plugin to list system network interfaces";
|
2023-11-16 04:20:00 +00:00
|
|
|
homepage = "https://github.com/fennewald/nu_plugin_net";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ happysalada ];
|
2024-06-20 14:57:18 +00:00
|
|
|
mainProgram = "nu_plugin_net";
|
2023-11-16 04:20:00 +00:00
|
|
|
};
|
|
|
|
}
|