Skip to content

Commit c37de9b

Browse files
committed
virt-top: fix build with gettext 0.25
1 parent 8457735 commit c37de9b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

pkgs/applications/virtualization/virt-top/default.nix

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
libxml2,
88
pkg-config,
99
getopt,
10+
gettext,
1011
}:
1112

1213
stdenv.mkDerivation rec {
@@ -43,9 +44,10 @@ stdenv.mkDerivation rec {
4344
]
4445
++ [ libxml2 ];
4546

46-
prePatch = ''
47+
postPatch = ''
4748
substituteInPlace ocaml-dep.sh.in --replace-fail '#!/bin/bash' '#!${stdenv.shell}'
4849
substituteInPlace ocaml-link.sh.in --replace-fail '#!/bin/bash' '#!${stdenv.shell}'
50+
substituteInPlace configure.ac --replace-fail 'AC_CONFIG_MACRO_DIR([m4])' 'AC_CONFIG_MACRO_DIRS([m4 ${gettext}/share/gettext/m4])'
4951
'';
5052

5153
meta = {

0 commit comments

Comments
 (0)