virt-top: fix build with gettext 0.25

Changed files
+3 -1
pkgs
applications
virtualization
virt-top
+3 -1
pkgs/applications/virtualization/virt-top/default.nix
···
libxml2,
pkg-config,
getopt,
}:
stdenv.mkDerivation rec {
···
]
++ [ libxml2 ];
-
prePatch = ''
substituteInPlace ocaml-dep.sh.in --replace-fail '#!/bin/bash' '#!${stdenv.shell}'
substituteInPlace ocaml-link.sh.in --replace-fail '#!/bin/bash' '#!${stdenv.shell}'
'';
meta = {
···
libxml2,
pkg-config,
getopt,
+
gettext,
}:
stdenv.mkDerivation rec {
···
]
++ [ libxml2 ];
+
postPatch = ''
substituteInPlace ocaml-dep.sh.in --replace-fail '#!/bin/bash' '#!${stdenv.shell}'
substituteInPlace ocaml-link.sh.in --replace-fail '#!/bin/bash' '#!${stdenv.shell}'
+
substituteInPlace configure.ac --replace-fail 'AC_CONFIG_MACRO_DIR([m4])' 'AC_CONFIG_MACRO_DIRS([m4 ${gettext}/share/gettext/m4])'
'';
meta = {