From 369defb7c11790a2d8f4bad55531836af1659468 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20=C4=8Cun=C3=A1t?= Date: Thu, 9 May 2013 15:15:04 +0200 Subject: [PATCH] sysvtools: fix symlink when withoutInitTools = false --- pkgs/os-specific/linux/sysvinit/default.nix | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/pkgs/os-specific/linux/sysvinit/default.nix b/pkgs/os-specific/linux/sysvinit/default.nix index 99aebd11667..7b4ecbb027e 100644 --- a/pkgs/os-specific/linux/sysvinit/default.nix +++ b/pkgs/os-specific/linux/sysvinit/default.nix @@ -26,10 +26,12 @@ stdenv.mkDerivation { substituteInPlace src/Makefile --replace /usr / ''; - postInstall = stdenv.lib.optionalString withoutInitTools + postInstall = '' + mv $out/sbin/killall5 $out/bin + ln -sf killall5 $out/bin/pidof + '' + + stdenv.lib.optionalString withoutInitTools '' - mv $out/sbin/killall5 $out/bin - ln -sf killall5 $out/bin/pidof shopt -s extglob rm -rf $out/sbin/!(sulogin) rm -rf $out/include