diff options
author | Renaud <c0bw3b@users.noreply.github.com> | 2018-11-02 00:11:07 +0100 |
---|---|---|
committer | xeji <36407913+xeji@users.noreply.github.com> | 2018-11-02 00:11:07 +0100 |
commit | 1a91d50ff2b621d5ea91d88f66acad7072c87dd3 (patch) | |
tree | bd02ec1c2ede67a688241cfd26027bab390f579f /pkgs/os-specific/linux/dropwatch/default.nix | |
parent | c8c1ed2c78b50e5db5ae715d3f037956ee6d44db (diff) | |
download | nixpkgs-1a91d50ff2b621d5ea91d88f66acad7072c87dd3.tar nixpkgs-1a91d50ff2b621d5ea91d88f66acad7072c87dd3.tar.gz nixpkgs-1a91d50ff2b621d5ea91d88f66acad7072c87dd3.tar.bz2 nixpkgs-1a91d50ff2b621d5ea91d88f66acad7072c87dd3.tar.lz nixpkgs-1a91d50ff2b621d5ea91d88f66acad7072c87dd3.tar.xz nixpkgs-1a91d50ff2b621d5ea91d88f66acad7072c87dd3.tar.zst nixpkgs-1a91d50ff2b621d5ea91d88f66acad7072c87dd3.zip |
dropwatch: init at 1.5 (#49593)
Diffstat (limited to 'pkgs/os-specific/linux/dropwatch/default.nix')
-rw-r--r-- | pkgs/os-specific/linux/dropwatch/default.nix | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/pkgs/os-specific/linux/dropwatch/default.nix b/pkgs/os-specific/linux/dropwatch/default.nix new file mode 100644 index 00000000000..936dbf719a8 --- /dev/null +++ b/pkgs/os-specific/linux/dropwatch/default.nix @@ -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 ]; + }; +} |