mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-11 15:27:20 +03:00
skydive: init at 0.17.0
This commit is contained in:
parent
69ffc8dc6a
commit
c21051dcf8
45
pkgs/tools/networking/skydive/default.nix
Normal file
45
pkgs/tools/networking/skydive/default.nix
Normal file
@ -0,0 +1,45 @@
|
|||||||
|
{ stdenv, lib, buildGoPackage, fetchFromGitHub, perl
|
||||||
|
, go-bindata, libxml2, protobuf3_1, libpcap, pkgconfig, go-protobuf }:
|
||||||
|
|
||||||
|
buildGoPackage rec {
|
||||||
|
name = "skydive-${version}";
|
||||||
|
version = "0.17.0";
|
||||||
|
goPackagePath = "github.com/skydive-project/skydive";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "skydive-project";
|
||||||
|
repo = "skydive";
|
||||||
|
rev = "v${version}";
|
||||||
|
sha256 = "03y26imiib2v9icrgwlamzsrx3ph6vn582051vdk1x9ar80xp4dv";
|
||||||
|
};
|
||||||
|
|
||||||
|
patchPhase = ''
|
||||||
|
substituteInPlace Makefile \
|
||||||
|
--replace ".proto: builddep" ".proto: " \
|
||||||
|
--replace ".bindata: builddep" ".bindata: "
|
||||||
|
'';
|
||||||
|
|
||||||
|
buildInputs = [ perl go-bindata go-protobuf libxml2 protobuf3_1 libpcap pkgconfig ];
|
||||||
|
goDeps = ./deps.nix;
|
||||||
|
|
||||||
|
preBuild = ''
|
||||||
|
make -C go/src/github.com/skydive-project/skydive genlocalfiles VERSION=${version}
|
||||||
|
'';
|
||||||
|
|
||||||
|
preInstall = ''
|
||||||
|
mkdir -p $out/share/skydive
|
||||||
|
cp go/src/github.com/skydive-project/skydive/etc/skydive.yml.default $out/share/skydive/
|
||||||
|
'';
|
||||||
|
|
||||||
|
postInstall = ''
|
||||||
|
rm $bin/bin/snort
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = {
|
||||||
|
homepage = http://skydive.network;
|
||||||
|
description = "A real-time network analyzer";
|
||||||
|
license = lib.licenses.asl20;
|
||||||
|
platforms = [ "x86_64-linux" ];
|
||||||
|
maintainers = [ lib.maintainers.lewo ];
|
||||||
|
};
|
||||||
|
}
|
1335
pkgs/tools/networking/skydive/deps.nix
generated
Normal file
1335
pkgs/tools/networking/skydive/deps.nix
generated
Normal file
File diff suppressed because it is too large
Load Diff
@ -11642,6 +11642,8 @@ with pkgs;
|
|||||||
|
|
||||||
skalibs = callPackage ../development/libraries/skalibs { };
|
skalibs = callPackage ../development/libraries/skalibs { };
|
||||||
|
|
||||||
|
skydive = callPackage ../tools/networking/skydive { };
|
||||||
|
|
||||||
slang = callPackage ../development/libraries/slang { };
|
slang = callPackage ../development/libraries/slang { };
|
||||||
|
|
||||||
slibGuile = callPackage ../development/libraries/slib {
|
slibGuile = callPackage ../development/libraries/slib {
|
||||||
|
Loading…
Reference in New Issue
Block a user