mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 23:13:19 +00:00
pmacct: use finalAttrs.finalPackage
This commit is contained in:
parent
85c14074e0
commit
4865536f92
@ -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;
|
||||
};
|
||||
}
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user