nixpkgs/pkgs/shells/nushell/plugins/net.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

41 lines
925 B
Nix
Raw Normal View History

2024-06-04 18:36:34 +00:00
{
lib,
rustPlatform,
fetchFromGitHub,
stdenv,
IOKit,
CoreFoundation,
2024-11-13 11:31:33 +00:00
nix-update-script,
}:
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";
src = fetchFromGitHub {
owner = "fennewald";
repo = "nu_plugin_net";
rev = "refs/tags/${version}";
2024-10-13 20:34:14 +00:00
hash = "sha256-nKcB919M9FkDloulh9IusWYPhf8vlhUmKVs6Gd6w3Bw=";
};
2024-10-26 13:28:53 +00:00
cargoHash = "sha256-bsrpdQS0wA3T0jZTG476sSkMRngEAOjgr4wX7svyMP4=";
2024-06-04 18:36:34 +00:00
nativeBuildInputs = [ rustPlatform.bindgenHook ];
buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [
CoreFoundation
IOKit
];
2024-11-13 11:31:33 +00:00
passthru.updateScript = nix-update-script { };
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";
};
}