Added home-made rustnet.nix and added it to puter

This commit is contained in:
2026-01-28 13:22:52 +02:00
parent 354a36fc35
commit 75900f6ae0
2 changed files with 30 additions and 0 deletions

View File

@@ -25,6 +25,8 @@
../../modules/common/libvirt.nix ../../modules/common/libvirt.nix
../../modules/common/keyd.nix ../../modules/common/keyd.nix
../../modules/common/unbound-cloud.nix ../../modules/common/unbound-cloud.nix
(callPackage .../../modules/common/rustnet.nix {})
]; ];
networking.hostName = "puter"; networking.hostName = "puter";
# This will be overridden by system/default.nix # This will be overridden by system/default.nix

View File

@@ -0,0 +1,28 @@
{ pkgs ? import <nixpkgs> {} }:
pkgs.stdenv.mkDerivation rec {
pname = "rustnet";
version = "0.18.0";
src = pkgs.fetchurl {
url = "https://github.com/domcyrus/rustnet/releases/download/v${version}/rustnet-v${version}-x86_64-unknown-linux-musl.tar.gz";
hash = "sha256-yAjemn3Qi0GjTG5u7UEXHBJFTCd6ctVacV5UoAX7bWA=";
};
sourceRoot = "rustnet-v${version}-x86_64-unknown-linux-musl";
installPhase = ''
runHook preInstall
# 1. Install the binary
install -m755 -D rustnet $out/bin/rustnet
runHook postInstall
'';
meta = with pkgs.lib; {
description = "A cross-platform network monitoring terminal UI tool built with Rust.";
#maintainers = lib.maintainers.0x545a;
#license = lib.licenses.asl20;
homepage = "https://github.com/domcyrus/rustnet";
platforms = [ "x86_64-linux" ];
};
}