2023-03-03 23:20:59 +01:00
|
|
|
final: prev:
|
2023-03-17 12:49:30 +01:00
|
|
|
let
|
2024-09-07 21:52:30 +02:00
|
|
|
isCross = final.stdenv.buildPlatform != final.stdenv.hostPlatform;
|
|
|
|
crossOnly = pkg : amendFn : if isCross then (amendFn pkg) else pkg;
|
2023-07-14 21:22:29 +02:00
|
|
|
extraPkgs = import ./pkgs/default.nix {
|
|
|
|
inherit (final) lib callPackage;
|
|
|
|
};
|
2023-03-17 12:49:30 +01:00
|
|
|
inherit (final) fetchpatch;
|
2024-09-07 21:52:30 +02:00
|
|
|
luaHost = prev.lua5_3.overrideAttrs(o: {
|
|
|
|
name = "lua-tty";
|
|
|
|
preBuild = ''
|
|
|
|
makeFlagsArray+=(PLAT="posix" SYSLIBS="-Wl,-E -ldl" CFLAGS="-O2 -fPIC -DLUA_USE_POSIX -DLUA_USE_DLOPEN")
|
|
|
|
'';
|
|
|
|
# lua in nixpkgs has a postInstall stanza that assumes only
|
|
|
|
# one output, we need to override that if we're going to
|
|
|
|
# convert to multi-output
|
|
|
|
# outputs = ["bin" "man" "out"];
|
|
|
|
makeFlags =
|
|
|
|
builtins.filter (x: (builtins.match "(PLAT|MYLIBS).*" x) == null)
|
|
|
|
o.makeFlags;
|
|
|
|
});
|
2023-04-23 00:03:36 +02:00
|
|
|
|
2023-04-19 22:44:06 +02:00
|
|
|
s6 = prev.s6.overrideAttrs(o:
|
2023-04-23 00:03:36 +02:00
|
|
|
let
|
|
|
|
patch = fetchpatch {
|
|
|
|
# add "p" directive in s6-log
|
|
|
|
url = "https://github.com/skarnet/s6/commit/ddc76841398dfd5e18b22943727ad74b880236d3.patch";
|
|
|
|
hash = "sha256-fBtUinBdp5GqoxgF6fcR44Tu8hakxs/rOShhuZOgokc=";
|
|
|
|
};
|
|
|
|
patch_needed = builtins.compareVersions o.version "2.11.1.2" <= 0;
|
2023-04-19 22:44:06 +02:00
|
|
|
in {
|
2023-04-23 00:03:36 +02:00
|
|
|
configureFlags = (builtins.filter
|
|
|
|
(x: (builtins.match ".*shared.*" x) == null)
|
|
|
|
o.configureFlags) ++
|
|
|
|
[
|
2023-04-19 22:44:06 +02:00
|
|
|
"--disable-allstatic"
|
|
|
|
"--disable-static"
|
|
|
|
"--enable-shared"
|
|
|
|
];
|
2023-04-23 00:04:03 +02:00
|
|
|
hardeningDisable = ["all"];
|
2023-04-19 22:44:06 +02:00
|
|
|
stripAllList = [ "sbin" "bin" ];
|
|
|
|
patches =
|
|
|
|
(if o ? patches then o.patches else []) ++
|
|
|
|
(if patch_needed then [ patch ] else []);
|
|
|
|
});
|
2023-03-03 23:20:59 +01:00
|
|
|
in
|
|
|
|
extraPkgs // {
|
2023-12-02 18:08:59 +01:00
|
|
|
# liminix library functions
|
|
|
|
lim = {
|
|
|
|
parseInt = s : (builtins.fromTOML "r=${s}").r;
|
|
|
|
};
|
2023-04-10 21:04:23 +02:00
|
|
|
|
2023-12-02 18:08:59 +01:00
|
|
|
# keep these alphabetical
|
2024-01-04 10:33:44 +01:00
|
|
|
|
|
|
|
btrfs-progs = prev.btrfs-progs.override {
|
|
|
|
udevSupport = false;
|
|
|
|
udev = null;
|
|
|
|
};
|
|
|
|
|
2023-06-19 22:37:06 +02:00
|
|
|
chrony =
|
|
|
|
let chrony' = prev.chrony.overrideAttrs(o: {
|
|
|
|
configureFlags = [
|
|
|
|
"--chronyvardir=$(out)/var/lib/chrony"
|
|
|
|
"--disable-readline"
|
|
|
|
"--disable-editline"
|
|
|
|
];
|
|
|
|
});
|
|
|
|
in chrony'.override {
|
|
|
|
gnutls = null;
|
|
|
|
nss = null;
|
|
|
|
nspr = null;
|
|
|
|
readline = null;
|
2023-06-20 21:09:17 +02:00
|
|
|
libedit = null;
|
2023-06-19 22:37:06 +02:00
|
|
|
libseccomp = null;
|
2023-06-20 21:09:17 +02:00
|
|
|
# should texinfo be in nativeBuildInputs instead of
|
|
|
|
# buildInputs?
|
|
|
|
texinfo = null;
|
2023-04-19 00:57:15 +02:00
|
|
|
|
2023-06-20 21:09:17 +02:00
|
|
|
};
|
2023-04-19 00:57:15 +02:00
|
|
|
|
2024-03-08 23:36:42 +01:00
|
|
|
# luarocks wants a cross-compiled cmake (which seems like a bug,
|
|
|
|
# we're never going to run luarocks on the device, but ...)
|
|
|
|
# but https://github.com/NixOS/nixpkgs/issues/284734
|
|
|
|
# so we do surgery on the cmake derivation until that's fixed
|
|
|
|
|
|
|
|
cmake = prev.cmake.overrideAttrs(o:
|
|
|
|
# don't override the build cmake or we'll have to rebuild
|
|
|
|
# half the known universe to no useful benefit
|
|
|
|
if final.stdenv.buildPlatform != final.stdenv.hostPlatform
|
|
|
|
then {
|
|
|
|
preConfigure =
|
|
|
|
builtins.replaceStrings
|
|
|
|
["$configureFlags"] ["$configureFlags $cmakeFlags"] o.preConfigure;
|
|
|
|
}
|
|
|
|
else {}
|
|
|
|
);
|
2023-03-05 00:08:25 +01:00
|
|
|
|
2022-10-08 21:05:17 +02:00
|
|
|
dnsmasq =
|
|
|
|
let d = prev.dnsmasq.overrideAttrs(o: {
|
|
|
|
preBuild = ''
|
|
|
|
makeFlagsArray=("COPTS=")
|
|
|
|
'';
|
|
|
|
});
|
|
|
|
in d.override {
|
2023-03-03 23:20:59 +01:00
|
|
|
dbusSupport = false;
|
|
|
|
nettle = null;
|
|
|
|
};
|
2023-02-22 19:41:41 +01:00
|
|
|
|
2023-12-02 18:08:59 +01:00
|
|
|
dropbear = prev.dropbear.overrideAttrs (o: {
|
|
|
|
postPatch = ''
|
|
|
|
(echo '#define DSS_PRIV_FILENAME "/run/dropbear/dropbear_dss_host_key"'
|
|
|
|
echo '#define RSA_PRIV_FILENAME "/run/dropbear/dropbear_rsa_host_key"'
|
|
|
|
echo '#define ECDSA_PRIV_FILENAME "/run/dropbear/dropbear_ecdsa_host_key"'
|
|
|
|
echo '#define ED25519_PRIV_FILENAME "/run/dropbear/dropbear_ed25519_host_key"') > localoptions.h
|
|
|
|
'';
|
|
|
|
});
|
|
|
|
|
2023-04-22 23:17:35 +02:00
|
|
|
hostapd =
|
|
|
|
let
|
|
|
|
config = [
|
|
|
|
"CONFIG_DRIVER_NL80211=y"
|
|
|
|
"CONFIG_IAPP=y"
|
|
|
|
"CONFIG_IEEE80211AC=y"
|
2024-02-17 04:34:00 +01:00
|
|
|
"CONFIG_IEEE80211AX=y"
|
2023-04-22 23:17:35 +02:00
|
|
|
"CONFIG_IEEE80211N=y"
|
|
|
|
"CONFIG_IEEE80211W=y"
|
|
|
|
"CONFIG_INTERNAL_LIBTOMMATH=y"
|
|
|
|
"CONFIG_INTERNAL_LIBTOMMATH_FAST=y"
|
|
|
|
"CONFIG_IPV6=y"
|
|
|
|
"CONFIG_LIBNL32=y"
|
|
|
|
"CONFIG_PKCS12=y"
|
|
|
|
"CONFIG_RSN_PREAUTH=y"
|
2024-09-05 18:32:11 +02:00
|
|
|
"CONFIG_UBUS=y"
|
2023-04-22 23:17:35 +02:00
|
|
|
"CONFIG_TLS=internal"
|
|
|
|
];
|
|
|
|
h = prev.hostapd.overrideAttrs(o: {
|
2024-09-05 18:32:11 +02:00
|
|
|
buildInputs = o.buildInputs ++ [ final.libubox final.ubus ];
|
|
|
|
src = final.fetchFromGitea {
|
|
|
|
domain = "git.dgnum.eu";
|
|
|
|
owner = "DGNum";
|
|
|
|
repo = "hostapd";
|
|
|
|
rev = "hostap-liminix-integration";
|
2024-09-07 18:09:34 +02:00
|
|
|
hash = "sha256-5Xi90keCHxvuKR5Q7STuZDzuM9h9ac6aWoXVQYvqkQI=";
|
2024-09-05 18:32:11 +02:00
|
|
|
};
|
2023-04-22 23:17:35 +02:00
|
|
|
extraConfig = "";
|
|
|
|
configurePhase = ''
|
|
|
|
cat > hostapd/defconfig <<EOF
|
|
|
|
${builtins.concatStringsSep "\n" config}
|
|
|
|
EOF
|
|
|
|
${o.configurePhase}
|
|
|
|
'';
|
|
|
|
});
|
|
|
|
in h.override { openssl = null; sqlite = null; };
|
2023-03-06 18:49:59 +01:00
|
|
|
|
2024-08-26 21:40:09 +02:00
|
|
|
hostapd-radius =
|
|
|
|
let
|
|
|
|
config = [
|
|
|
|
"CONFIG_DRIVER_NL80211=y"
|
|
|
|
"CONFIG_DRIVER_WIRED=y"
|
|
|
|
"CONFIG_EAP=y"
|
|
|
|
"CONFIG_EAP_PEAP=y"
|
|
|
|
"CONFIG_RADIUS_SERVER=y"
|
|
|
|
"CONFIG_FULL_DYNAMIC_VLAN=y"
|
|
|
|
"CONFIG_IAPP=y"
|
|
|
|
"CONFIG_IEEE80211AC=y"
|
|
|
|
"CONFIG_IEEE80211AX=y"
|
|
|
|
"CONFIG_IEEE80211N=y"
|
|
|
|
"CONFIG_IEEE80211W=y"
|
|
|
|
"CONFIG_INTERNAL_LIBTOMMATH=y"
|
|
|
|
"CONFIG_INTERNAL_LIBTOMMATH_FAST=y"
|
|
|
|
"CONFIG_IPV6=y"
|
|
|
|
"CONFIG_LIBNL32=y"
|
|
|
|
"CONFIG_PKCS12=y"
|
|
|
|
"CONFIG_RSN_PREAUTH=y"
|
2024-09-07 17:18:59 +02:00
|
|
|
"CONFIG_UBUS=y"
|
2024-09-07 17:03:50 +02:00
|
|
|
"CONFIG_TLS=internal"
|
2024-08-26 21:40:09 +02:00
|
|
|
];
|
|
|
|
h = prev.hostapd.overrideAttrs(o: {
|
2024-09-07 17:18:59 +02:00
|
|
|
buildInputs = o.buildInputs ++ [ final.libubox final.ubus ];
|
|
|
|
src = final.fetchFromGitea {
|
|
|
|
domain = "git.dgnum.eu";
|
|
|
|
owner = "DGNum";
|
|
|
|
repo = "hostapd";
|
|
|
|
rev = "hostap-liminix-integration";
|
2024-09-07 18:09:34 +02:00
|
|
|
hash = "sha256-5Xi90keCHxvuKR5Q7STuZDzuM9h9ac6aWoXVQYvqkQI=";
|
2024-09-07 17:18:59 +02:00
|
|
|
};
|
2024-08-26 21:40:09 +02:00
|
|
|
extraConfig = "";
|
|
|
|
configurePhase = ''
|
|
|
|
cat > hostapd/defconfig <<EOF
|
|
|
|
${builtins.concatStringsSep "\n" config}
|
|
|
|
EOF
|
|
|
|
${o.configurePhase}
|
|
|
|
'';
|
|
|
|
});
|
2024-09-07 17:03:50 +02:00
|
|
|
in h.override { openssl = null; sqlite = null; };
|
2024-08-26 21:40:09 +02:00
|
|
|
|
2024-09-18 17:04:51 +02:00
|
|
|
wpa_supplicant = prev.wpa_supplicant.override {
|
|
|
|
dbusSupport = false;
|
|
|
|
withPcsclite = false;
|
|
|
|
wpa_supplicant_gui = null;
|
|
|
|
};
|
2024-08-26 21:40:09 +02:00
|
|
|
|
2023-12-02 18:08:59 +01:00
|
|
|
kexec-tools-static = prev.kexec-tools.overrideAttrs(o: {
|
|
|
|
# For kexecboot we copy kexec into a ramdisk on the system being
|
|
|
|
# upgraded from. This is more likely to work if kexec is
|
|
|
|
# statically linked so doesn't have dependencies on store paths that
|
|
|
|
# may not exist on that machine. (We can't nix-copy-closure as
|
|
|
|
# the store may not be on a writable filesystem)
|
|
|
|
LDFLAGS = "-static";
|
|
|
|
|
|
|
|
patches = o.patches ++ [
|
|
|
|
(fetchpatch {
|
|
|
|
# merge user command line options into DTB chosen
|
|
|
|
url = "https://patch-diff.githubusercontent.com/raw/horms/kexec-tools/pull/3.patch";
|
|
|
|
hash = "sha256-MvlJhuex9dlawwNZJ1sJ33YPWn1/q4uKotqkC/4d2tk=";
|
|
|
|
})
|
|
|
|
pkgs/kexec-map-file.patch
|
|
|
|
];
|
|
|
|
});
|
|
|
|
|
2024-09-07 21:52:30 +02:00
|
|
|
lua = crossOnly prev.lua5_3 (_: luaHost);
|
2023-12-02 18:08:59 +01:00
|
|
|
|
|
|
|
mtdutils = prev.mtdutils.overrideAttrs(o: {
|
|
|
|
patches = (if o ? patches then o.patches else []) ++ [
|
|
|
|
./pkgs/mtdutils/0001-mkfs.jffs2-add-graft-option.patch
|
|
|
|
];
|
2024-08-31 20:28:23 +02:00
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
# Testing programs which we don't need. We save a lot of space!
|
|
|
|
rm -rf $out/libexec
|
|
|
|
'';
|
2023-12-02 18:08:59 +01:00
|
|
|
});
|
|
|
|
|
|
|
|
nftables = prev.nftables.overrideAttrs(o: {
|
|
|
|
configureFlags = [
|
|
|
|
"--disable-debug"
|
|
|
|
"--disable-python"
|
|
|
|
"--with-mini-gmp"
|
|
|
|
"--without-cli"
|
|
|
|
];
|
2023-03-04 01:39:54 +01:00
|
|
|
});
|
|
|
|
|
2023-09-12 19:44:43 +02:00
|
|
|
openssl = prev.openssl.overrideAttrs (o: {
|
|
|
|
# we want to apply
|
|
|
|
# https://patch-diff.githubusercontent.com/raw/openssl/openssl/pull/20273.patch";
|
|
|
|
# which disables overriding the -march cflags to the wrong values,
|
|
|
|
# but openssl is used for bootstrapping so that's easier said than
|
|
|
|
# done. Do it the ugly way..
|
|
|
|
postPatch =
|
|
|
|
o.postPatch
|
|
|
|
+ (with final;
|
|
|
|
lib.optionalString (stdenv.buildPlatform != stdenv.hostPlatform)
|
|
|
|
"\nsed -i.bak 's/linux.*-mips/linux-mops/' Configure\n");
|
|
|
|
});
|
|
|
|
|
2023-12-02 18:08:59 +01:00
|
|
|
pppBuild = prev.ppp;
|
|
|
|
|
2024-01-03 18:53:30 +01:00
|
|
|
qemuLim = let q = prev.qemu.overrideAttrs (o: {
|
2023-11-02 14:43:24 +01:00
|
|
|
patches = o.patches ++ [
|
|
|
|
./pkgs/qemu/arm-image-friendly-load-addr.patch
|
|
|
|
];
|
2024-10-01 16:43:53 +02:00
|
|
|
}); in q.override {
|
|
|
|
vde2 = null;
|
|
|
|
nixosTestRunner = true;
|
|
|
|
sdlSupport = false;
|
|
|
|
hostCpuTargets = [ "mips-softmmu" ];
|
|
|
|
};
|
2023-11-02 14:43:24 +01:00
|
|
|
|
2023-12-02 18:08:59 +01:00
|
|
|
rsyncSmall =
|
|
|
|
let r = prev.rsync.overrideAttrs(o: {
|
|
|
|
configureFlags = o.configureFlags ++ [
|
|
|
|
"--disable-openssl"
|
|
|
|
];
|
|
|
|
});
|
|
|
|
in r.override { openssl = null; };
|
2023-11-05 16:13:06 +01:00
|
|
|
|
2023-12-02 18:08:59 +01:00
|
|
|
|
|
|
|
inherit s6;
|
|
|
|
s6-linux-init = prev.s6-linux-init.override {
|
|
|
|
skawarePackages = prev.skawarePackages // {
|
|
|
|
inherit s6;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
s6-rc = prev.s6-rc.override {
|
|
|
|
skawarePackages = prev.skawarePackages // {
|
|
|
|
inherit s6;
|
|
|
|
};
|
2023-11-05 16:13:06 +01:00
|
|
|
};
|
2023-12-02 18:08:59 +01:00
|
|
|
|
|
|
|
strace = prev.strace.override { libunwind = null; };
|
2023-12-05 00:39:27 +01:00
|
|
|
|
2024-09-30 16:39:58 +02:00
|
|
|
getent =
|
|
|
|
prev.callPackage ({
|
|
|
|
lib,
|
|
|
|
stdenv,
|
|
|
|
fetchFromGitHub,
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "musl-utils";
|
|
|
|
version = "1.1.12-r7";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "boltlinux";
|
|
|
|
repo = "musl-utils";
|
|
|
|
rev = version;
|
|
|
|
hash = "sha256-q9CbOyK0Psw3YJnIT3yPRWuwr40nxLZt4RexuOHAUuw=";
|
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
prev.autoconf
|
|
|
|
prev.automake
|
|
|
|
];
|
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
autoreconf -i
|
|
|
|
'';
|
|
|
|
|
|
|
|
buildPhase = ''
|
|
|
|
make -C src getent
|
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin/
|
|
|
|
cp src/getent $out/bin/
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Alpine Linux' getconf, getent and iconv implementations";
|
|
|
|
homepage = "https://github.com/boltlinux/musl-utils";
|
|
|
|
license = lib.licenses.free; # FIXME: nix-init did not find a license
|
|
|
|
maintainers = with lib.maintainers; [ ];
|
|
|
|
mainProgram = "musl-utils";
|
|
|
|
platforms = lib.platforms.all;
|
|
|
|
};
|
|
|
|
}) { };
|
|
|
|
|
2024-10-01 16:43:53 +02:00
|
|
|
systemd =
|
|
|
|
let base = prev.systemd.override {
|
|
|
|
withAcl = false;
|
|
|
|
withAnalyze = false;
|
|
|
|
withApparmor = false;
|
|
|
|
withAudit = false;
|
|
|
|
withBootloader = false;
|
|
|
|
withCompression = false;
|
|
|
|
withCoredump = false;
|
|
|
|
withCryptsetup = false;
|
|
|
|
withRepart = false;
|
|
|
|
withDocumentation = false;
|
|
|
|
withEfi = false;
|
|
|
|
withFido2 = false;
|
|
|
|
withHomed = false;
|
|
|
|
withHostnamed = false;
|
|
|
|
withHwdb = false;
|
|
|
|
withImportd = false;
|
|
|
|
withIptables = false;
|
|
|
|
withKmod = false;
|
|
|
|
withLibBPF = false;
|
|
|
|
withLibidn2 = false;
|
|
|
|
withLocaled = false;
|
|
|
|
withLogind = false;
|
|
|
|
withMachined = false;
|
|
|
|
withNetworkd = false;
|
|
|
|
withNss = false;
|
|
|
|
withOomd = false;
|
|
|
|
withPam = false;
|
|
|
|
withPasswordQuality = false;
|
|
|
|
withPCRE2 = false;
|
|
|
|
withPolkit = false;
|
|
|
|
withPortabled = false;
|
|
|
|
withQrencode = false;
|
|
|
|
withRemote = false;
|
|
|
|
withResolved = false;
|
|
|
|
withShellCompletions = false;
|
|
|
|
withSysusers = false;
|
|
|
|
withSysupdate = false;
|
|
|
|
withTimedated = false;
|
|
|
|
withTimesyncd = false;
|
|
|
|
withTpm2Tss = false;
|
|
|
|
withUkify = false;
|
|
|
|
withUserDb = false;
|
|
|
|
withUtmp = false;
|
|
|
|
withVmspawn = false;
|
|
|
|
withKernelInstall = false;
|
|
|
|
withLibarchive = false;
|
|
|
|
};
|
|
|
|
in base.overrideAttrs (o: {
|
|
|
|
mesonFlags = o.mesonFlags ++ [
|
|
|
|
# "--optimization=s"
|
|
|
|
"--default-library=static"
|
|
|
|
"--buildtype=minsize"
|
|
|
|
];
|
|
|
|
postInstall = o.postInstall + ''
|
|
|
|
rm -rf $out/share
|
|
|
|
rm $out/lib/libudev.so*
|
|
|
|
rm -rf $out/lib/systemd/catalog
|
|
|
|
rm -rf $out/lib/systemd/system-generators
|
|
|
|
rm $out/lib/systemd/systemd-backlight
|
|
|
|
rm $out/lib/systemd/systemd-battery-check
|
|
|
|
rm $out/lib/systemd/systemd-hibernate-resume
|
|
|
|
rm $out/lib/systemd/systemd-makefs
|
|
|
|
rm $out/lib/systemd/systemd-nsresourced
|
|
|
|
rm $out/lib/systemd/systemd-nsresourcework
|
|
|
|
rm $out/lib/systemd/systemd-shutdown
|
|
|
|
rm $out/lib/systemd/systemd-sleep
|
|
|
|
rm $out/lib/systemd/systemd-binfmt
|
|
|
|
rm $out/lib/systemd/systemd-growfs
|
|
|
|
rm $out/lib/systemd/systemd-mountfsd
|
|
|
|
rm $out/lib/systemd/systemd-mountwork
|
|
|
|
rm $out/lib/systemd/systemd-network-generator
|
|
|
|
rm $out/lib/systemd/systemd-pstore
|
|
|
|
rm $out/lib/systemd/systemd-remount-fs
|
|
|
|
rm $out/lib/systemd/systemd-reply-password
|
|
|
|
rm $out/lib/systemd/systemd-rfkill
|
|
|
|
rm $out/lib/systemd/systemd-socket-proxyd
|
|
|
|
rm $out/lib/systemd/systemd-ssh-proxy
|
|
|
|
rm $out/lib/systemd/systemd-storagetm
|
|
|
|
rm $out/lib/systemd/systemd-volatile-root
|
|
|
|
rm $out/lib/systemd/systemd-xdg-autostart-condition
|
|
|
|
rm -rf $out/example
|
|
|
|
rm $out/bin/bootctl
|
|
|
|
rm $out/bin/systemd-nspawn
|
|
|
|
rm $out/bin/systemd-ac-power
|
|
|
|
rm $out/bin/systemd-dissect
|
|
|
|
rm $out/bin/systemd-ask-password
|
|
|
|
rm $out/bin/systemd-cgls
|
|
|
|
rm $out/bin/systemd-cgtop
|
|
|
|
rm $out/bin/systemd-creds
|
|
|
|
rm $out/bin/systemd-delta
|
|
|
|
rm $out/bin/systemd-detect-virt
|
|
|
|
rm $out/bin/systemd-escape
|
|
|
|
rm $out/bin/systemd-id128
|
|
|
|
rm $out/bin/systemd-machine-id-setup
|
|
|
|
rm $out/bin/systemd-path
|
|
|
|
rm $out/bin/systemd-run
|
|
|
|
rm $out/bin/systemd-socket-activate
|
|
|
|
rm $out/bin/systemd-stdio-bridge
|
|
|
|
rm $out/bin/systemd-sysext
|
|
|
|
rm $out/bin/systemd-tty-ask-password-agent
|
|
|
|
rm $out/bin/systemd-vpick
|
|
|
|
'';
|
|
|
|
});
|
2024-09-30 16:39:58 +02:00
|
|
|
|
2023-12-19 13:12:12 +01:00
|
|
|
ubootQemuAarch64 = final.buildUBoot {
|
|
|
|
defconfig = "qemu_arm64_defconfig";
|
|
|
|
extraMeta.platforms = ["aarch64-linux"];
|
|
|
|
filesToInstall = ["u-boot.bin"];
|
|
|
|
};
|
|
|
|
|
2023-12-05 00:39:27 +01:00
|
|
|
ubootQemuArm = final.buildUBoot {
|
|
|
|
defconfig = "qemu_arm_defconfig";
|
|
|
|
extraMeta.platforms = ["armv7l-linux"];
|
|
|
|
filesToInstall = ["u-boot.bin"];
|
|
|
|
extraConfig = ''
|
|
|
|
CONFIG_CMD_UBI=y
|
|
|
|
CONFIG_CMD_UBIFS=y
|
2023-12-06 00:16:53 +01:00
|
|
|
CONFIG_BOOTSTD=y
|
|
|
|
CONFIG_BOOTMETH_DISTRO=y
|
2023-12-18 23:42:29 +01:00
|
|
|
CONFIG_LZMA=y
|
|
|
|
CONFIG_CMD_LZMADEC=y
|
|
|
|
CONFIG_SYS_BOOTM_LEN=0x1000000
|
2023-12-05 00:39:27 +01:00
|
|
|
'';
|
|
|
|
};
|
2023-12-13 22:54:15 +01:00
|
|
|
|
2023-12-21 20:17:14 +01:00
|
|
|
ubootQemuMips = final.buildUBoot {
|
|
|
|
defconfig = "malta_defconfig";
|
|
|
|
extraMeta.platforms = ["mips-linux"];
|
|
|
|
filesToInstall = ["u-boot.bin"];
|
|
|
|
# define the prompt to be the same as arm{32,64} so
|
|
|
|
# we can use the same expect script for both
|
|
|
|
extraPatches = [ ./pkgs/u-boot/0002-virtio-init-for-malta.patch ];
|
|
|
|
extraConfig = ''
|
|
|
|
CONFIG_SYS_PROMPT="=> "
|
|
|
|
CONFIG_VIRTIO=y
|
|
|
|
CONFIG_AUTOBOOT=y
|
|
|
|
CONFIG_DM_PCI=y
|
|
|
|
CONFIG_VIRTIO_PCI=y
|
|
|
|
CONFIG_VIRTIO_NET=y
|
|
|
|
CONFIG_VIRTIO_BLK=y
|
|
|
|
CONFIG_VIRTIO_MMIO=y
|
|
|
|
CONFIG_QFW_MMIO=y
|
|
|
|
CONFIG_FIT=y
|
|
|
|
CONFIG_LZMA=y
|
|
|
|
CONFIG_CMD_LZMADEC=y
|
|
|
|
CONFIG_SYS_BOOTM_LEN=0x1000000
|
|
|
|
CONFIG_SYS_MALLOC_LEN=0x400000
|
|
|
|
CONFIG_MIPS_BOOT_FDT=y
|
|
|
|
CONFIG_OF_LIBFDT=y
|
|
|
|
CONFIG_OF_STDOUT_VIA_ALIAS=y
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
2024-05-14 13:56:58 +02:00
|
|
|
libusb1 = prev.libusb1.override { enableUdev = false; };
|
|
|
|
|
2024-01-03 11:45:40 +01:00
|
|
|
util-linux-small = prev.util-linux.override {
|
2023-12-30 23:26:12 +01:00
|
|
|
ncursesSupport = false;
|
|
|
|
pamSupport = false;
|
|
|
|
systemdSupport = false;
|
|
|
|
nlsSupport = false;
|
|
|
|
translateManpages = false;
|
|
|
|
capabilitiesSupport = false;
|
|
|
|
};
|
2023-12-13 22:54:15 +01:00
|
|
|
|
2022-09-20 00:51:38 +02:00
|
|
|
}
|