mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-16 09:03:42 +00:00
freebsd.getty: init
This commit is contained in:
parent
c9b08ff772
commit
a20e099c9a
21
pkgs/os-specific/bsd/freebsd/pkgs/getty.nix
Normal file
21
pkgs/os-specific/bsd/freebsd/pkgs/getty.nix
Normal 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
|
||||
'';
|
||||
}
|
Loading…
Reference in New Issue
Block a user