1{
2 stdenv,
3 lib,
4 rustPlatform,
5 fetchFromGitHub,
6 nix-update-script,
7}:
8
9rustPlatform.buildRustPackage (finalAttrs: {
10 pname = "nu_plugin_net";
11 version = "1.10.0";
12
13 src = fetchFromGitHub {
14 owner = "fennewald";
15 repo = "nu_plugin_net";
16 tag = "${finalAttrs.version}";
17 hash = "sha256-HiNydU40FprxVmRRZtnXom2kFYI04mbeuGTq8+BMh7o=";
18 };
19
20 cargoHash = "sha256-tq0XqY2B7tC2ep8vH6T3nkAqxqhniqzYnhbkfB3SbHU=";
21
22 nativeBuildInputs = lib.optionals stdenv.cc.isClang [ rustPlatform.bindgenHook ];
23
24 # there are no tests
25 doCheck = false;
26
27 passthru.updateScript = nix-update-script { };
28
29 meta = {
30 description = "Nushell plugin to list system network interfaces";
31 homepage = "https://github.com/fennewald/nu_plugin_net";
32 license = lib.licenses.mit;
33 maintainers = with lib.maintainers; [ happysalada ];
34 mainProgram = "nu_plugin_net";
35 # "Plugin `net` is compiled for nushell version 0.104.0, which is not
36 # compatible with version 0.105.1"
37 broken = true;
38 };
39})