packaged mac-telnet

This commit is contained in:
Sebastian Moser
2024-05-14 23:30:43 +02:00
parent 55f2efb749
commit ac7b85fdc2
3 changed files with 37 additions and 0 deletions

View File

@@ -422,6 +422,7 @@
#}); #});
cbm = nixpkgs.legacyPackages.x86_64-linux.callPackage ./mods/cbm.nix { }; cbm = nixpkgs.legacyPackages.x86_64-linux.callPackage ./mods/cbm.nix { };
mac-telnet = nixpkgs.legacyPackages.x86_64-linux.callPackage ./mods/mac-telnet.nix { };
run-vm = specialArgs.pkgs.writeScriptBin "run-vm" '' run-vm = specialArgs.pkgs.writeScriptBin "run-vm" ''
${self.nixosConfigurations.hpm.config.system.build.vm}/bin/run-hpm-vm -m 4G -cpu host -smp 4 ${self.nixosConfigurations.hpm.config.system.build.vm}/bin/run-hpm-vm -m 4G -cpu host -smp 4
''; '';

35
mods/mac-telnet.nix Normal file
View File

@@ -0,0 +1,35 @@
{ stdenv
, fetchFromGitHub
, autoreconfHook
, lib
, openssl
}:
stdenv.mkDerivation rec {
pname = "cbm";
version = "0.3.2";
src = fetchFromGitHub {
owner = "haakonnessjoen";
repo = "MAC-Telnet";
rev = "master";
sha256 = "sha256-8DgVlxvRHh5u0Tl9K0i1m7DUqg9h7uL94M7ZaBx3c5s=";
};
nativeBuildInputs = [
autoreconfHook
openssl
];
configureFlags = [
"--without-config"
];
meta = with lib; {
description = "Open source MAC Telnet client and server for connecting to Mikrotik RouterOS routers and Posix devices using MAC addresses";
homepage = "http://lunatic.no/2010/10/routeros-mac-telnet-application-for-linux-users/";
license = licenses.gpl2Only;
#maintainers = [ ];
platforms = platforms.all;
};
}

View File

@@ -3,4 +3,5 @@
{ pkgs ? import <nixpkgs> { } }: { { pkgs ? import <nixpkgs> { } }: {
cbm = pkgs.callPackage ./mods/cbm.nix {}; cbm = pkgs.callPackage ./mods/cbm.nix {};
mac-telnet = pkgs.callPackage ./mods/mac-telnet.nix {};
} }