freebsd.getty: init

This commit is contained in:
Audrey Dutcher 2024-06-06 22:09:33 -07:00
parent c9b08ff772
commit a20e099c9a

View File

@ -0,0 +1,21 @@
{
mkDerivation,
login,
wrappedLogin ? null,
}:
mkDerivation {
path = "libexec/getty";
postPatch = ''
sed -E -i -e "s|/usr/bin/login|${
if (wrappedLogin != null) then wrappedLogin else "${login}/bin/login"
}|g" $BSDSRCDIR/libexec/getty/*.h
'';
MK_TESTS = "no";
postInstall = ''
mkdir -p $out/etc
cp $BSDSRCDIR/libexec/getty/gettytab $out/etc/gettytab
'';
}