pkgs/tools: stdenv.lib -> lib

This commit is contained in:
Ben Siraphob
2021-01-15 17:12:36 +07:00
parent 94f3683935
commit 8c5d37129f
916 changed files with 2510 additions and 2510 deletions
+2 -2
View File
@@ -11,12 +11,12 @@ stdenv.mkDerivation rec {
sha256 = "0y0n1ybij3yg9lfgzcwfmjz1sjg913zcqrv391xx83dm0j80sdpb";
};
buildInputs = [ libpcap ] ++ stdenv.lib.optional withTcl tcl;
buildInputs = [ libpcap ] ++ lib.optional withTcl tcl;
postPatch = ''
substituteInPlace Makefile.in --replace "gcc" "$CC"
substituteInPlace version.c --replace "RELEASE_DATE" "\"$version\""
'' + stdenv.lib.optionalString stdenv.isLinux ''
'' + lib.optionalString stdenv.isLinux ''
sed -i -e 's|#include <net/bpf.h>|#include <pcap/bpf.h>|' \
libpcap_stuff.c script.c
'';