unixtools: cleanup
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
{ stdenv, fetchurl, pkgconfig, systemd, utillinux, coreutils, nettools, man
|
||||
{ stdenv, fetchurl, pkgconfig, systemd, utillinux, coreutils, wall, hostname, man
|
||||
, utillinux
|
||||
, enableCgiScripts ? true, gd
|
||||
}:
|
||||
|
||||
@@ -46,8 +47,8 @@ stdenv.mkDerivation rec {
|
||||
|
||||
postInstall = ''
|
||||
for file in "$out"/etc/apcupsd/*; do
|
||||
sed -i -e 's|^WALL=.*|WALL="${utillinux}/bin/wall"|g' \
|
||||
-e 's|^HOSTNAME=.*|HOSTNAME=`${nettools}/bin/hostname`|g' \
|
||||
sed -i -e 's|^WALL=.*|WALL="${wall}/bin/wall"|g' \
|
||||
-e 's|^HOSTNAME=.*|HOSTNAME=`${hostname}/bin/hostname`|g' \
|
||||
"$file"
|
||||
done
|
||||
'';
|
||||
|
||||
Reference in New Issue
Block a user