2024-06-04 18:36:34 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
rustPlatform,
|
|
|
|
fetchFromGitHub,
|
|
|
|
stdenv,
|
|
|
|
IOKit,
|
|
|
|
CoreFoundation,
|
|
|
|
unstableGitUpdater,
|
2023-10-22 17:40:49 +00:00
|
|
|
}:
|
|
|
|
|
2024-09-11 13:03:02 +00:00
|
|
|
rustPlatform.buildRustPackage rec {
|
2024-10-21 08:15:17 +00:00
|
|
|
pname = "nushell_plugin_net";
|
2024-10-13 20:34:14 +00:00
|
|
|
version = "1.8.0";
|
2023-10-22 17:40:49 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "fennewald";
|
|
|
|
repo = "nu_plugin_net";
|
2024-09-11 13:03:02 +00:00
|
|
|
rev = "refs/tags/${version}";
|
2024-10-13 20:34:14 +00:00
|
|
|
hash = "sha256-nKcB919M9FkDloulh9IusWYPhf8vlhUmKVs6Gd6w3Bw=";
|
2023-10-22 17:40:49 +00:00
|
|
|
};
|
|
|
|
|
2024-10-26 13:28:53 +00:00
|
|
|
cargoHash = "sha256-bsrpdQS0wA3T0jZTG476sSkMRngEAOjgr4wX7svyMP4=";
|
2023-10-22 17:40:49 +00:00
|
|
|
|
2024-06-04 18:36:34 +00:00
|
|
|
nativeBuildInputs = [ rustPlatform.bindgenHook ];
|
2023-10-22 17:40:49 +00:00
|
|
|
|
|
|
|
buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [
|
|
|
|
CoreFoundation
|
|
|
|
IOKit
|
|
|
|
];
|
|
|
|
|
2023-10-24 14:29:31 +00:00
|
|
|
passthru.updateScript = unstableGitUpdater { };
|
2023-10-22 17:40:49 +00:00
|
|
|
|
|
|
|
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 ];
|
2024-06-04 18:36:34 +00:00
|
|
|
mainProgram = "nu_plugin_net";
|
2023-10-22 17:40:49 +00:00
|
|
|
};
|
|
|
|
}
|