mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-27 05:43:50 +03:00
sysvtools: fix symlink when withoutInitTools = false
This commit is contained in:
parent
ec3965d8d0
commit
369defb7c1
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user