unixtools: cleanup

This commit is contained in:
Matthew Bauer
2018-03-27 18:17:45 -05:00
parent 35d6688a1b
commit 4a9fddc598
5 changed files with 55 additions and 19 deletions
+4 -3
View File
@@ -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
'';