nixpkgs/pkgs/tools/networking/lldpd/default.nix
R. RyanTM 29a319dd6e lldpd: 0.9.9 -> 1.0.1
Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools.

This update was made based on information from https://repology.org/metapackage/lldpd/versions.

These checks were done:

- built on NixOS
- ran ‘/nix/store/00pbm219d71n3rf14xbza3fzy0fjcb2w-lldpd-1.0.1/bin/lldpcli help’ got 0 exit code
- ran ‘/nix/store/00pbm219d71n3rf14xbza3fzy0fjcb2w-lldpd-1.0.1/bin/lldpcli -v’ and found version 1.0.1
- ran ‘/nix/store/00pbm219d71n3rf14xbza3fzy0fjcb2w-lldpd-1.0.1/bin/lldpctl help’ got 0 exit code
- ran ‘/nix/store/00pbm219d71n3rf14xbza3fzy0fjcb2w-lldpd-1.0.1/bin/lldpctl -v’ and found version 1.0.1
- ran ‘/nix/store/00pbm219d71n3rf14xbza3fzy0fjcb2w-lldpd-1.0.1/bin/lldpd -v’ and found version 1.0.1
- found 1.0.1 with grep in /nix/store/00pbm219d71n3rf14xbza3fzy0fjcb2w-lldpd-1.0.1
- directory tree listing: https://gist.github.com/932f1a4dc800d742ebb11c348d927eac
2018-04-10 21:08:54 -07:00

39 lines
1.0 KiB
Nix

{ stdenv, lib, fetchurl, pkgconfig, removeReferencesTo
, libevent, readline, net_snmp }:
stdenv.mkDerivation rec {
name = "lldpd-${version}";
version = "1.0.1";
src = fetchurl {
url = "https://media.luffy.cx/files/lldpd/${name}.tar.gz";
sha256 = "0lgiappbjm95r1m0xyxb6gzz4izcjixknbzq3s7pbqbsmhm642s5";
};
configureFlags = [
"--localstatedir=/var"
"--enable-pie"
"--with-snmp"
"--with-systemdsystemunitdir=\${out}/lib/systemd/system"
];
nativeBuildInputs = [ pkgconfig removeReferencesTo ];
buildInputs = [ libevent readline net_snmp ];
enableParallelBuilding = true;
outputs = [ "out" "dev" "man" "doc" ];
preFixup = ''
find $out -type f -exec remove-references-to -t ${stdenv.cc} '{}' +
'';
meta = with lib; {
description = "802.1ab implementation (LLDP) to help you locate neighbors of all your equipments";
homepage = https://vincentbernat.github.io/lldpd/;
license = licenses.isc;
maintainers = with maintainers; [ fpletz ];
platforms = platforms.linux;
};
}