sysvinit: fix build with libxcrypt
This commit is contained in:
parent
94e54c6152
commit
3edcff9eb2
@ -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 =
|
||||
|
Loading…
Reference in New Issue
Block a user