2022-09-20 00:51:38 +02:00
|
|
|
final: prev: {
|
2022-09-22 00:01:21 +02:00
|
|
|
pseudofile = final.callPackage ./pkgs/pseudofile {};
|
|
|
|
strace = prev.strace.override { libunwind = null; };
|
2022-09-26 13:26:54 +02:00
|
|
|
liminix = {
|
|
|
|
services = final.callPackage ./pkgs/liminix-tools/services {};
|
|
|
|
networking = final.callPackage ./pkgs/liminix-tools/networking {};
|
2022-09-27 17:06:54 +02:00
|
|
|
builders = {
|
|
|
|
squashfs = final.callPackage ./pkgs/liminix-tools/builders/squashfs.nix {};
|
2023-02-10 18:54:33 +01:00
|
|
|
kernel = final.callPackage ./pkgs/kernel {};
|
2022-09-27 17:06:54 +02:00
|
|
|
};
|
2022-09-26 13:26:54 +02:00
|
|
|
};
|
2022-09-25 21:50:20 +02:00
|
|
|
writeAshScript = final.callPackage ./pkgs/write-ash-script {};
|
2022-09-26 15:13:23 +02:00
|
|
|
s6-init-bin = final.callPackage ./pkgs/s6-init-bin {};
|
2022-09-26 16:59:21 +02:00
|
|
|
s6-rc-database = final.callPackage ./pkgs/s6-rc-database {};
|
|
|
|
|
2022-10-08 21:05:17 +02:00
|
|
|
dnsmasq =
|
|
|
|
let d = prev.dnsmasq.overrideAttrs(o: {
|
|
|
|
preBuild = ''
|
|
|
|
makeFlagsArray=("COPTS=")
|
|
|
|
'';
|
|
|
|
});
|
|
|
|
in d.override {
|
2022-09-28 22:33:18 +02:00
|
|
|
dbusSupport = false;
|
2022-10-08 21:05:17 +02:00
|
|
|
nettle = null;
|
2022-09-28 22:33:18 +02:00
|
|
|
};
|
|
|
|
|
2023-02-08 23:16:39 +01:00
|
|
|
mips-vm = final.callPackage ./pkgs/mips-vm {};
|
2022-09-27 23:04:22 +02:00
|
|
|
pppoe = final.callPackage ./pkgs/pppoe {};
|
2023-02-22 19:41:41 +01:00
|
|
|
|
|
|
|
kernel-backport = final.callPackage ./pkgs/kernel-backport {};
|
|
|
|
mac80211 = final.callPackage ./pkgs/mac80211 {};
|
|
|
|
|
2023-02-17 01:09:02 +01:00
|
|
|
pppBuild = prev.ppp;
|
2022-09-25 12:54:31 +02:00
|
|
|
ppp =
|
|
|
|
(prev.ppp.override {
|
|
|
|
libpcap = null;
|
|
|
|
}).overrideAttrs (o : {
|
|
|
|
stripAllList = [ "bin" ];
|
|
|
|
buildInputs = [];
|
|
|
|
|
|
|
|
# patches =
|
|
|
|
# o.patches ++
|
|
|
|
# [(final.fetchpatch {
|
|
|
|
# name = "ipv6-script-options.patch";
|
|
|
|
# url = "https://github.com/ppp-project/ppp/commit/874c2a4a9684bf6938643c7fa5ff1dd1cf80aea4.patch";
|
|
|
|
# sha256 = "sha256-K46CKpDpm1ouj6jFtDs9IUMHzlRMRP+rMPbMovLy3o4=";
|
|
|
|
# })];
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
sed -i -e 's@_PATH_VARRUN@"/run/"@' pppd/main.c
|
|
|
|
sed -i -e 's@^FILTER=y@# FILTER unset@' pppd/Makefile.linux
|
|
|
|
sed -i -e 's/-DIPX_CHANGE/-UIPX_CHANGE/g' pppd/Makefile.linux
|
|
|
|
'';
|
|
|
|
buildPhase = ''
|
|
|
|
runHook preBuild
|
|
|
|
make -C pppd CC=$CC USE_TDB= HAVE_MULTILINK= USE_EAPTLS= USE_CRYPT=y
|
|
|
|
make -C pppd/plugins/pppoe CC=$CC
|
|
|
|
make -C pppd/plugins/pppol2tp CC=$CC
|
|
|
|
runHook postBuild;
|
|
|
|
'';
|
|
|
|
installPhase = ''
|
|
|
|
runHook preInstall
|
|
|
|
mkdir -p $out/bin $out/lib/pppd/2.4.9
|
|
|
|
cp pppd/pppd pppd/plugins/pppoe/pppoe-discovery $out/bin
|
|
|
|
cp pppd/plugins/pppoe/pppoe.so $out/lib/pppd/2.4.9
|
|
|
|
cp pppd/plugins/pppol2tp/{open,pppo}l2tp.so $out/lib/pppd/2.4.9
|
|
|
|
runHook postInstall
|
|
|
|
'';
|
|
|
|
postFixup = "";
|
|
|
|
});
|
2022-10-05 19:19:09 +02:00
|
|
|
|
|
|
|
|
|
|
|
# we need to build real lzma instead of using xz, because the lzma
|
|
|
|
# decoder in u-boot doesn't understand streaming lzma archives
|
|
|
|
# ("Stream with EOS marker is not supported") and xz can't create
|
|
|
|
# non-streaming ones. See
|
|
|
|
# https://sourceforge.net/p/squashfs/mailman/message/26599379/
|
|
|
|
|
|
|
|
lzma = final.stdenv.mkDerivation {
|
|
|
|
pname = "lzma";
|
|
|
|
version = "4.32.7";
|
|
|
|
configureFlags = [ "--enable-static" "--disable-shared"];
|
|
|
|
src = final.buildPackages.fetchurl {
|
|
|
|
url = "https://tukaani.org/lzma/lzma-4.32.7.tar.gz";
|
|
|
|
sha256 = "0b03bdvm388kwlcz97aflpr3ir1zpa3m0bq3s6cd3pp5a667lcwz";
|
|
|
|
};
|
|
|
|
};
|
2023-02-08 19:10:11 +01:00
|
|
|
|
2023-02-25 00:03:09 +01:00
|
|
|
netlink-lua = final.callPackage ./pkgs/netlink-lua {};
|
|
|
|
waitup = final.callPackage ./pkgs/waitup {};
|
|
|
|
|
2023-02-08 19:10:11 +01:00
|
|
|
# these are packages for the build system not the host/target
|
|
|
|
|
|
|
|
tufted = final.callPackage ./pkgs/tufted {};
|
|
|
|
routeros = final.callPackage ./pkgs/routeros {};
|
2023-02-14 23:08:52 +01:00
|
|
|
go-l2tp = final.callPackage ./pkgs/go-l2tp {};
|
2022-09-20 00:51:38 +02:00
|
|
|
}
|