mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-26 17:03:01 +00:00
pmacct: use finalAttrs.finalPackage
This commit is contained in:
parent
85c14074e0
commit
4865536f92
@ -14,17 +14,16 @@
|
|||||||
, withMysql ? true, libmysqlclient, zlib, numactl
|
, withMysql ? true, libmysqlclient, zlib, numactl
|
||||||
, gnutlsSupport ? false, gnutls
|
, gnutlsSupport ? false, gnutls
|
||||||
, testers
|
, testers
|
||||||
, pmacct
|
|
||||||
}:
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation (finalAttrs: {
|
||||||
version = "1.7.9";
|
version = "1.7.9";
|
||||||
pname = "pmacct";
|
pname = "pmacct";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "pmacct";
|
owner = "pmacct";
|
||||||
repo = "pmacct";
|
repo = "pmacct";
|
||||||
rev = "v${version}";
|
rev = "v${finalAttrs.version}";
|
||||||
hash = "sha256-3gV6GUhTQnH09NRIJQI0xBn05Bgo3AJsE2cSxNPXITo=";
|
hash = "sha256-3gV6GUhTQnH09NRIJQI0xBn05Bgo3AJsE2cSxNPXITo=";
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -55,7 +54,7 @@ stdenv.mkDerivation rec {
|
|||||||
++ lib.optional gnutlsSupport "--enable-gnutls";
|
++ lib.optional gnutlsSupport "--enable-gnutls";
|
||||||
|
|
||||||
passthru.tests = {
|
passthru.tests = {
|
||||||
version = testers.testVersion { package = pmacct; command = "pmacct -V"; };
|
version = testers.testVersion { package = finalAttrs.finalPackage; command = "pmacct -V"; };
|
||||||
};
|
};
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
@ -70,4 +69,4 @@ stdenv.mkDerivation rec {
|
|||||||
maintainers = with maintainers; [ _0x4A6F ];
|
maintainers = with maintainers; [ _0x4A6F ];
|
||||||
platforms = platforms.unix;
|
platforms = platforms.unix;
|
||||||
};
|
};
|
||||||
}
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user