nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 rustPlatform,
4 fetchFromGitHub,
5 nix-update-script,
6}:
7
8rustPlatform.buildRustPackage rec {
9 pname = "nushell_plugin_net";
10 version = "1.10.0";
11
12 src = fetchFromGitHub {
13 owner = "fennewald";
14 repo = "nu_plugin_net";
15 rev = "refs/tags/${version}";
16 hash = "sha256-HiNydU40FprxVmRRZtnXom2kFYI04mbeuGTq8+BMh7o=";
17 };
18
19 useFetchCargoVendor = true;
20 cargoHash = "sha256-tq0XqY2B7tC2ep8vH6T3nkAqxqhniqzYnhbkfB3SbHU=";
21
22 nativeBuildInputs = [ rustPlatform.bindgenHook ];
23
24 passthru.updateScript = nix-update-script { };
25
26 meta = with lib; {
27 description = "Nushell plugin to list system network interfaces";
28 homepage = "https://github.com/fennewald/nu_plugin_net";
29 license = licenses.mit;
30 maintainers = with maintainers; [ happysalada ];
31 mainProgram = "nu_plugin_net";
32 };
33}