1 { lib, perlPackages, nix, dmidecode, pciutils, usbutils, iproute2, nettools
2 , fetchFromGitHub, makeWrapper
5 perlPackages.buildPerlPackage rec {
6 pname = "FusionInventory-Agent";
9 src = fetchFromGitHub {
10 owner = "fusioninventory";
11 repo = "fusioninventory-agent";
13 sha256 = "1hbp5a9m03n6a80xc8z640zs71qhqk4ifafr6fp0vvzzvq097ip2";
20 substituteInPlace "lib/FusionInventory/Agent/Tools/Linux.pm" \
21 --replace /sbin/ip ${iproute2}/sbin/ip
22 substituteInPlace "lib/FusionInventory/Agent/Task/Inventory/Linux/Networks.pm" \
23 --replace /sbin/ip ${iproute2}/sbin/ip
27 nativeBuildInputs = [ makeWrapper ];
28 buildInputs = (with perlPackages; [
34 HTTPServerSimpleAuthen
49 propagatedBuildInputs = with perlPackages; [
58 # Test fails due to "Argument list too long"
68 for cur in $out/bin/*; do
69 if [ -x "$cur" ]; then
70 sed -e "s|./lib|$out/lib|" -i "$cur"
71 wrapProgram "$cur" --prefix PATH : ${lib.makeBinPath [nix dmidecode pciutils usbutils nettools iproute2]}
79 homepage = "http://www.fusioninventory.org";
80 description = "FusionInventory unified Agent for UNIX, Linux, Windows and MacOSX";
81 license = lib.licenses.gpl2;
82 maintainers = [ maintainers.phile314 ];