ocsinventory-agent: 2.10.1 -> 2.10.4

https://github.com/OCSInventory-NG/UnixAgent/compare/v2.10.1-MAC...v2.10.4
This commit is contained in:
Anthony ROUSSEL 2024-11-03 18:27:48 +01:00 committed by Anthony Roussel
parent 5259df7001
commit 3585cfd19a

View File

@ -2,6 +2,7 @@
, stdenv
, perlPackages
, fetchFromGitHub
, fetchpatch
, makeWrapper
, shortenPerlShebang
, coreutils
@ -22,21 +23,31 @@
}:
perlPackages.buildPerlPackage rec {
version = "2.10.1";
pname = "ocsinventory-agent";
version = "2.10.4";
src = fetchFromGitHub {
owner = "OCSInventory-NG";
repo = "UnixAgent";
rev = "refs/tags/v${version}-MAC";
hash = "sha256-aFzBrUsVttUhpYGEYd/yYuXmE90PGCiBmBsVjtHcHLg=";
rev = "refs/tags/v${version}";
hash = "sha256-MKUYf3k47lHc9dTGo1wYd7r4GrX98dU+04mF0Jm5e9U=";
};
patches = [
# Fix Getopt-Long warnings
# See https://github.com/OCSInventory-NG/UnixAgent/pull/490
(fetchpatch {
url = "https://github.com/OCSInventory-NG/UnixAgent/commit/c4899cef6b797df471ddf41c427970de47302f80.patch";
hash = "sha256-HxcWb9jmHiL0r6VWlsvmKUuybnM9W5471FLBBe3Zrfs=";
})
];
nativeBuildInputs = [ makeWrapper ] ++ lib.optional stdenv.hostPlatform.isDarwin shortenPerlShebang;
buildInputs = with perlPackages; [
perl
DataUUID
GetoptLong
IOCompress
IOSocketSSL
LWP
@ -81,8 +92,6 @@ perlPackages.buildPerlPackage rec {
version = testers.testVersion {
package = ocsinventory-agent;
command = "ocsinventory-agent --version";
# upstream has not updated version in lib/Ocsinventory/Agent/Config.pm
version = "2.10.0";
};
};
updateScript = nix-update-script { };