dropwatch: init at 1.5 (#49593)

This commit is contained in:
Renaud 2018-11-02 00:11:07 +01:00 committed by xeji
parent c8c1ed2c78
commit 1a91d50ff2
2 changed files with 37 additions and 0 deletions

View file

@ -0,0 +1,35 @@
{ stdenv, fetchFromGitHub, autoreconfHook, pkgconfig
, libnl, readline, libbfd, ncurses, zlib }:
stdenv.mkDerivation rec {
pname = "dropwatch";
version = "1.5";
name = "${pname}-${version}";
src = fetchFromGitHub {
owner = "nhorman";
repo = pname;
rev = version;
sha256 = "085hyyl28v0vpxfnmzchl97fjfnzj46ynhkg6y4i6h194y0d99m7";
};
nativeBuildInputs = [ autoreconfHook pkgconfig ];
buildInputs = [ libbfd libnl ncurses readline zlib ];
# To avoid running into https://sourceware.org/bugzilla/show_bug.cgi?id=14243 we need to define:
NIX_CFLAGS_COMPILE = [
"-DPACKAGE=${pname}"
"-DPACKAGE_VERSION=${version}"
];
enableParallelBuilding = true;
meta = with stdenv.lib; {
description = "Kernel dropped packet monitor";
homepage = https://github.com/nhorman/dropwatch;
license = licenses.gpl2;
platforms = platforms.linux;
maintainers = [ maintainers.c0bw3b ];
};
}

View file

@ -14018,6 +14018,8 @@ with pkgs;
drbd = callPackage ../os-specific/linux/drbd { }; drbd = callPackage ../os-specific/linux/drbd { };
dropwatch = callPackage ../os-specific/linux/dropwatch { };
dstat = callPackage ../os-specific/linux/dstat { }; dstat = callPackage ../os-specific/linux/dstat { };
# unstable until the first 1.x release # unstable until the first 1.x release