Added home-made rustnet.nix and added it to puter
This commit is contained in:
@@ -25,6 +25,8 @@
|
||||
../../modules/common/libvirt.nix
|
||||
../../modules/common/keyd.nix
|
||||
../../modules/common/unbound-cloud.nix
|
||||
|
||||
(callPackage .../../modules/common/rustnet.nix {})
|
||||
];
|
||||
networking.hostName = "puter";
|
||||
# This will be overridden by system/default.nix
|
||||
|
||||
28
modules/common/rustnet.nix
Normal file
28
modules/common/rustnet.nix
Normal 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" ];
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user