pkgs/tools: stdenv.lib -> lib
This commit is contained in:
@@ -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
|
||||
'';
|
||||
|
||||
Reference in New Issue
Block a user