Skip to content

Commit

Permalink
ocsinventory-agent: 2.10.1 -> 2.10.3
Browse files Browse the repository at this point in the history
  • Loading branch information
anthonyroussel committed Oct 29, 2024
1 parent 0eb28cb commit c185999
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions pkgs/by-name/oc/ocsinventory-agent/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -22,21 +22,30 @@
}:

perlPackages.buildPerlPackage rec {
version = "2.10.1";
pname = "ocsinventory-agent";
version = "2.10.3";

src = fetchFromGitHub {
owner = "OCSInventory-NG";
repo = "UnixAgent";
rev = "refs/tags/v${version}-MAC";
hash = "sha256-aFzBrUsVttUhpYGEYd/yYuXmE90PGCiBmBsVjtHcHLg=";
hash = "sha256-r2oqs2gxFda0xn3B9Pmtpg7+E7PQpV2yOztP6GVnqyE=";
};

postPatch = ''
# Fix Getopt-Long warnings introduced with v2.55
# This version adds a breaking change which enforce case sensitive single-letter options by default.
# See https://github.com/sciurius/perl-Getopt-Long/commit/5b5647b709fec087d2b7a31f7a613441d989d480
substituteInPlace lib/Ocsinventory/Agent/Config.pm \
--replace-fail "use Getopt::Long;" "use Getopt::Long qw(:config no_ignore_case);"
'';

nativeBuildInputs = [ makeWrapper ] ++ lib.optional stdenv.hostPlatform.isDarwin shortenPerlShebang;

buildInputs = with perlPackages; [
perl
DataUUID
GetoptLong
IOCompress
IOSocketSSL
LWP
Expand Down Expand Up @@ -82,7 +91,7 @@ perlPackages.buildPerlPackage rec {
package = ocsinventory-agent;
command = "ocsinventory-agent --version";
# upstream has not updated version in lib/Ocsinventory/Agent/Config.pm
version = "2.10.0";
version = "2.10.2";
};
};
updateScript = nix-update-script { };
Expand Down

0 comments on commit c185999

Please sign in to comment.