git.iko.soy/typeable/nixpkgs
on master help sign in
FusionInventory: Patch in NixOS support

Adds support for the /etc/os-release file and to read installed software from the Nix store.

commit59a737a9220dbd5de9e281744ff83c44ed762377 authorPhilipp Hausmann <ph_git@314.ch> dateTue 28 Nov 2017, 08:26 (9 years ago) parent5f59913
1 file changed+21−5
pkgs/servers/monitoring/fusion-inventory/default.nix+21−5
pkgs/servers/monitoring/fusion-inventory/default.nix+21−5
@@ -5,14 +5,30 @@
55buildPerlPackage rec {
66 name = "FusionInventory-Agent-${version}";
77 version = "2.3.21";
8− src = fetchurl {
9− url = "mirror://cpan/authors/id/G/GB/GBOUGARD/${name}.tar.gz";
10− sha256 = "0c2ijild03bfw125h2gyaip2mg1jxk72dcanrlx9n6pjh2ay90zh";
8+
9+ src = fetchFromGitHub {
10+ owner = "fusioninventory";
11+ repo = "fusioninventory-agent";
12+ rev = version;
13+ sha256 = "034clffcn0agx85macjgml4lyhvvck7idn94pqd2c77pk6crvw2y";
1114 };
1215
13− patches = [ ./remove_software_test.patch ];
16+ patches = [
17+ ./remove_software_test.patch
18+ # support for os-release file
19+ (fetchurl {
20+ url = https://github.com/fusioninventory/fusioninventory-agent/pull/396.diff;
21+ sha256 = "0bxrjmff80ab01n23xggci32ajsah6zvcmz5x4hj6ayy6dzwi6jb";
22+ })
23+ # support for Nix software inventory
24+ (fetchurl {
25+ url = https://github.com/fusioninventory/fusioninventory-agent/pull/397.diff;
26+ sha256 = "0pyf7mp0zsb3zcqb6yysr1zfp54p9ciwjn1pzayw6s9flmcgrmbw";
27+ })
28+ ];
1429
1530 postPatch = ''
31+
1632 patchShebangs bin
1733
1834 substituteInPlace "lib/FusionInventory/Agent/Tools/Linux.pm" \
@@ -61,7 +77,7 @@ buildPerlPackage rec {
6177 for cur in $out/bin/*; do
6278 if [ -x "$cur" ]; then
6379 sed -e "s|./lib|$out/lib|" -i "$cur"
64− wrapProgram "$cur" --prefix PATH : ${lib.makeBinPath [nix dmidecode pciutils usbutils nettools]}
80+ wrapProgram "$cur" --prefix PATH : ${lib.makeBinPath [nix dmidecode pciutils usbutils nettools iproute]}
6581 fi
6682 done
6783 '';