mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-28 14:22:50 +03:00
netsniff-ng: remove useless dependencies
- Replace external `which` with `command -v` built into bash - Remove non-functional GeoIP dependency for now
This commit is contained in:
parent
19a6e3a2e6
commit
78ec3797ab
@ -1,6 +1,6 @@
|
|||||||
{ stdenv, fetchFromGitHub, bison, flex, geoip, libcli, libnet
|
{ stdenv, fetchFromGitHub, bison, flex, libcli, libnet
|
||||||
, libnetfilter_conntrack, libnl, libpcap, libsodium, liburcu, ncurses, perl
|
, libnetfilter_conntrack, libnl, libpcap, libsodium, liburcu, ncurses, perl
|
||||||
, pkgconfig, which, zlib }:
|
, pkgconfig, zlib }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
version = "0.5.9-rc4-40-g5107740";
|
version = "0.5.9-rc4-40-g5107740";
|
||||||
@ -13,12 +13,13 @@ stdenv.mkDerivation rec {
|
|||||||
sha256 = "1z3b7pa5rhz37dhfb1riy1j9lg917bs4z7clqbxm1hzi1x2ln988";
|
sha256 = "1z3b7pa5rhz37dhfb1riy1j9lg917bs4z7clqbxm1hzi1x2ln988";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ bison flex geoip libcli libnet libnl libnetfilter_conntrack
|
buildInputs = [ bison flex libcli libnet libnl libnetfilter_conntrack
|
||||||
libpcap libsodium liburcu ncurses perl pkgconfig which zlib ];
|
libpcap libsodium liburcu ncurses perl pkgconfig zlib ];
|
||||||
|
|
||||||
# ./configure is not autoGNU but some home-brewn magic
|
# ./configure is not autoGNU but some home-brewn magic
|
||||||
configurePhase = ''
|
configurePhase = ''
|
||||||
patchShebangs configure
|
patchShebangs configure
|
||||||
|
substituteInPlace configure --replace "which" "command -v"
|
||||||
NACL_INC_DIR=${libsodium}/include/sodium NACL_LIB=sodium ./configure
|
NACL_INC_DIR=${libsodium}/include/sodium NACL_LIB=sodium ./configure
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user