sysvinit: fix build with libxcrypt

This commit is contained in:
Franz Pletz 2022-09-30 02:58:02 +02:00 committed by Martin Weinelt
parent 94e54c6152
commit 3edcff9eb2
No known key found for this signature in database
GPG Key ID: 87C1E9888F856759

View File

@ -1,4 +1,4 @@
{ lib, stdenv, fetchurl, withoutInitTools ? false }:
{ lib, stdenv, fetchurl, libxcrypt, withoutInitTools ? false }:
stdenv.mkDerivation rec {
pname = if withoutInitTools then "sysvtools" else "sysvinit";
@ -14,6 +14,8 @@ stdenv.mkDerivation rec {
sed -i -e "s,/sbin/,$out/sbin/," src/halt.c src/init.c src/paths.h
'';
buildInputs = [ libxcrypt ];
makeFlags = [ "SULOGINLIBS=-lcrypt" "ROOT=$(out)" "MANDIR=/share/man" ];
preInstall =