Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 23.11 41 lines 938 B view raw
1{ lib 2, rustPlatform 3, fetchFromGitHub 4, stdenv 5, IOKit 6, CoreFoundation 7, unstableGitUpdater 8}: 9 10rustPlatform.buildRustPackage { 11 pname = "nu-plugin-net"; 12 version = "unstable-2023-10-24"; 13 14 src = fetchFromGitHub { 15 owner = "fennewald"; 16 repo = "nu_plugin_net"; 17 rev = "8b63996ea2ff8bf282c9b0f5f6d01960cfe3d074"; 18 hash = "sha256-QFo2cMI41GDBsuPNay5MyVyY+HdrLjAWedz8kDNA3JY="; 19 }; 20 21 cargoHash = "sha256-ekfUQOsaWdpDASnRzoYh5Y/p3BnP7rvSYCCWQ6DJDnE="; 22 23 nativeBuildInputs = [ 24 rustPlatform.bindgenHook 25 ]; 26 27 buildInputs = lib.optionals stdenv.isDarwin [ 28 CoreFoundation 29 IOKit 30 ]; 31 32 passthru.updateScript = unstableGitUpdater { }; 33 34 meta = with lib; { 35 description = "A nushell plugin to list system network interfaces"; 36 homepage = "https://github.com/fennewald/nu_plugin_net"; 37 license = licenses.mit; 38 maintainers = with maintainers; [ happysalada ]; 39 mainProgram = "nu-plugin-net"; 40 }; 41}