Skip to content

Commit 5d19bc4

Browse files
authored
libnids: fix cross build (NixOS#373778)
2 parents c01257f + c8d6153 commit 5d19bc4

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

pkgs/by-name/li/libnids/package.nix

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,12 @@ stdenv.mkDerivation {
1414
url = "mirror://sourceforge/libnids/libnids-1.24.tar.gz";
1515
sha256 = "1cblklfdfxcmy0an6xyyzx4l877xdawhjd28daqfsvrh81mb07k1";
1616
};
17+
18+
postPatch = ''
19+
substituteInPlace src/Makefile.in \
20+
--replace-fail ar '${stdenv.cc.targetPrefix}ar'
21+
'';
22+
1723
nativeBuildInputs = [ pkg-config ];
1824
buildInputs = [
1925
libpcap

0 commit comments

Comments
 (0)