sysvinit: fix build with libxcrypt

authored by Franz Pletz and committed by Martin Weinelt 3edcff9e 94e54c61

+3 -1
+3 -1
pkgs/os-specific/linux/sysvinit/default.nix
··· 1 - { lib, stdenv, fetchurl, withoutInitTools ? false }: 1 + { lib, stdenv, fetchurl, libxcrypt, withoutInitTools ? false }: 2 2 3 3 stdenv.mkDerivation rec { 4 4 pname = if withoutInitTools then "sysvtools" else "sysvinit"; ··· 13 13 # Patch some minimal hard references, so halt/shutdown work 14 14 sed -i -e "s,/sbin/,$out/sbin/," src/halt.c src/init.c src/paths.h 15 15 ''; 16 + 17 + buildInputs = [ libxcrypt ]; 16 18 17 19 makeFlags = [ "SULOGINLIBS=-lcrypt" "ROOT=$(out)" "MANDIR=/share/man" ]; 18 20