pmacct: use finalAttrs.finalPackage

This commit is contained in:
Peder Bergebakken Sundt 2024-09-17 03:32:58 +02:00
parent 85c14074e0
commit 4865536f92

View File

@ -14,17 +14,16 @@
, withMysql ? true, libmysqlclient, zlib, numactl
, gnutlsSupport ? false, gnutls
, testers
, pmacct
}:
stdenv.mkDerivation rec {
stdenv.mkDerivation (finalAttrs: {
version = "1.7.9";
pname = "pmacct";
src = fetchFromGitHub {
owner = "pmacct";
repo = "pmacct";
rev = "v${version}";
rev = "v${finalAttrs.version}";
hash = "sha256-3gV6GUhTQnH09NRIJQI0xBn05Bgo3AJsE2cSxNPXITo=";
};
@ -55,7 +54,7 @@ stdenv.mkDerivation rec {
++ lib.optional gnutlsSupport "--enable-gnutls";
passthru.tests = {
version = testers.testVersion { package = pmacct; command = "pmacct -V"; };
version = testers.testVersion { package = finalAttrs.finalPackage; command = "pmacct -V"; };
};
meta = with lib; {
@ -70,4 +69,4 @@ stdenv.mkDerivation rec {
maintainers = with maintainers; [ _0x4A6F ];
platforms = platforms.unix;
};
}
})