adds rapid silicon stuff

This commit is contained in:
Fabián Montero 2023-02-13 09:24:19 -06:00
parent a87a8667b2
commit dede28c4de
4 changed files with 39 additions and 28 deletions

View file

@ -8,6 +8,7 @@
matplotlib
numpy
pandas
requests
scipy
setuptools
]))

View file

@ -1,4 +1,5 @@
pkgs:
{
andesight = pkgs.callPackage ./andesight {};
netextender = pkgs.callPackage ./netextender {};
}

View file

@ -1,28 +0,0 @@
{ lib, ... }:
with lib;
let
version = "10.2.845";
filename = "NetExtender.Linux-${version}";
in
stdenv.mkDerivation {
pname = "andesight";
inherit version;
nativeBuildInputs = [
autoPatchelfHook
];
buildInputs = [
];
src = pkgs.fetchTarball {
url = "https://software.sonicwall.com/NetExtender/${filename}.tgz";
sha256 = fakeSha356;
};
buildPhase = ''
'';
meta.license = licenses.unfree;
}

View file

@ -0,0 +1,37 @@
{ lib, stdenv, autoPatchelfHook, fetchurl, ppp, iproute2, nettools, ... }:
with lib;
let
version = "10.2.845.x86";
filename = "NetExtender.Linux-${version}";
in
stdenv.mkDerivation {
pname = "netextender";
inherit version;
nativeBuildInputs = [
autoPatchelfHook
];
buildInputs = [
ppp
iproute2
nettools
];
src = fetchurl {
url = "https://software.sonicwall.com/NetExtender/${filename}.tgz";
sha256 = "sha256-5TQxAu0MP36uDaFJ1hw7euhMiq1qjyjBsym9Waoj8D8=";
};
buildPhase = ''
substituteInPlace netExtenderClient/install \
--replace /usr/sbin/pppd ${ppp}/bin/pppd \
--replace /sbin/ip ${iproute2}/bin/ip \
--replace /sbin/route ${nettools}/bin/route \
--replace /sbin/ifconfig ${nettools}/bin/ifconfig \
--replace /usr/share $out/share \
--replace /usr/bin $out/bin
'';
meta.license = licenses.unfree;
}