forked from DGNum/liminix
try to reduce closure
This commit is contained in:
parent
9da241d8ec
commit
c9c07dd0d9
2 changed files with 32 additions and 1 deletions
|
@ -103,7 +103,6 @@ in
|
||||||
Before = [ "default.target" ];
|
Before = [ "default.target" ];
|
||||||
};
|
};
|
||||||
script = ''
|
script = ''
|
||||||
#!/bin/ash
|
|
||||||
# . /etc/profile
|
# . /etc/profile
|
||||||
exec /bin/ash < /dev/ttyS0 > /dev/ttyS0 2> /dev/ttyS0
|
exec /bin/ash < /dev/ttyS0 > /dev/ttyS0 2> /dev/ttyS0
|
||||||
'';
|
'';
|
||||||
|
|
32
overlay.nix
32
overlay.nix
|
@ -335,8 +335,26 @@ extraPkgs // {
|
||||||
};
|
};
|
||||||
}) { };
|
}) { };
|
||||||
|
|
||||||
|
writeShellScriptBin = name: text:
|
||||||
|
final.writeTextFile {
|
||||||
|
inherit name;
|
||||||
|
executable = true;
|
||||||
|
destination = "/bin/${name}";
|
||||||
|
text = ''
|
||||||
|
#!${final.execline}/bin/ash
|
||||||
|
${text}
|
||||||
|
'';
|
||||||
|
checkPhase = ''
|
||||||
|
${final.stdenv.shellDryRun} "$target"
|
||||||
|
'';
|
||||||
|
meta.mainProgram = name;
|
||||||
|
};
|
||||||
|
|
||||||
systemd =
|
systemd =
|
||||||
let base = prev.systemd.override {
|
let base = prev.systemd.override {
|
||||||
|
bash = null;
|
||||||
|
bashInteractive = "";
|
||||||
|
|
||||||
withAcl = false;
|
withAcl = false;
|
||||||
withAnalyze = false;
|
withAnalyze = false;
|
||||||
withApparmor = false;
|
withApparmor = false;
|
||||||
|
@ -389,6 +407,17 @@ extraPkgs // {
|
||||||
# "--optimization=s"
|
# "--optimization=s"
|
||||||
"--default-library=static"
|
"--default-library=static"
|
||||||
"--buildtype=minsize"
|
"--buildtype=minsize"
|
||||||
|
# (final.lib.mesonBool "static-libsystemd" true)
|
||||||
|
# (final.lib.mesonBool "standalone-binaries" true)
|
||||||
|
|
||||||
|
# (final.lib.mesonBool "link-udev-shared" false)
|
||||||
|
# (final.lib.mesonBool "link-executor-shared" false)
|
||||||
|
# (final.lib.mesonBool "link-systemctl-shared" false)
|
||||||
|
# (final.lib.mesonBool "link-networkd-shared" false)
|
||||||
|
# (final.lib.mesonBool "link-timesyncd-shared" false)
|
||||||
|
# (final.lib.mesonBool "link-journalctl-shared" false)
|
||||||
|
# (final.lib.mesonBool "link-boot-shared" false)
|
||||||
|
# (final.lib.mesonBool "link-portabled-shared" false)
|
||||||
];
|
];
|
||||||
postInstall = o.postInstall + ''
|
postInstall = o.postInstall + ''
|
||||||
rm -rf $out/share
|
rm -rf $out/share
|
||||||
|
@ -438,6 +467,9 @@ extraPkgs // {
|
||||||
rm $out/bin/systemd-sysext
|
rm $out/bin/systemd-sysext
|
||||||
rm $out/bin/systemd-tty-ask-password-agent
|
rm $out/bin/systemd-tty-ask-password-agent
|
||||||
rm $out/bin/systemd-vpick
|
rm $out/bin/systemd-vpick
|
||||||
|
|
||||||
|
# rm $out/lib/libsystemd.a
|
||||||
|
# rm $out/lib/systemd/libsystemd-shared-256.so
|
||||||
'';
|
'';
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue