2024-06-20 14:57:18 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
rustPlatform,
|
|
|
|
fetchFromGitHub,
|
|
|
|
stdenv,
|
|
|
|
IOKit,
|
|
|
|
CoreFoundation,
|
|
|
|
unstableGitUpdater,
|
2023-11-16 04:20:00 +00:00
|
|
|
}:
|
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
rustPlatform.buildRustPackage rec {
|
2024-10-23 06:41:50 +00:00
|
|
|
pname = "nushell_plugin_net";
|
2024-10-11 05:15:48 +00:00
|
|
|
version = "1.8.0";
|
2023-11-16 04:20:00 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "fennewald";
|
|
|
|
repo = "nu_plugin_net";
|
2024-09-19 14:19:46 +00:00
|
|
|
rev = "refs/tags/${version}";
|
2024-10-11 05:15:48 +00:00
|
|
|
hash = "sha256-nKcB919M9FkDloulh9IusWYPhf8vlhUmKVs6Gd6w3Bw=";
|
2023-11-16 04:20:00 +00:00
|
|
|
};
|
|
|
|
|
2024-10-11 05:15:48 +00:00
|
|
|
cargoHash = "sha256-3FMalpgKYZ4xM2fHXTFOVu5I8yS06K1bDiKg4we7jF4=";
|
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
|
|
|
|
2024-09-26 11:04:55 +00:00
|
|
|
buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [
|
2023-11-16 04:20:00 +00:00
|
|
|
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
|
|
|
};
|
|
|
|
}
|