add norouter

This commit is contained in:
Rongsong Shen 2026-03-27 21:04:40 +08:00
parent 0286e0d645
commit d14037ffd6
3 changed files with 28 additions and 0 deletions

View file

@ -0,0 +1,25 @@
{ stdenvNoCC, lib, fetchurl, autoPatchelfHook, zlib, openssl }:
stdenvNoCC.mkDerivation rec {
pname = "norouter";
version = "0.6.5";
src = fetchurl {
url = "https://github.com/${pname}/${pname}/releases/download/v${version}/${pname}-Linux-x86_64.tgz";
hash = "sha256-kNAzGBuYLLHITGJAerH27kj8MjmxjII63ORym//rJEk=";
};
nativeBuildInputs = [ autoPatchelfHook ];
buildInputs = [ zlib openssl ]; # Add required libraries
dontUnpack = true;
configurePhase = ''
cat $src |gzip -dc |tar xf -
'';
installPhase = ''
mkdir -p $out/bin
cp norouter $out/bin
'';
}