Merge pull request #123655 from evils/vnstat

vnstat: 2.6 -> 2.7
This commit is contained in:
Guillaume Girol 2021-05-20 19:28:29 +00:00 committed by GitHub
commit 9ae7b7e706
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,12 +1,20 @@
{ lib, stdenv, fetchurl, pkg-config, gd, ncurses, sqlite, check }:
{ lib, stdenv
, fetchFromGitHub
, pkg-config
, gd, ncurses
, sqlite
, check
}:
stdenv.mkDerivation rec {
pname = "vnstat";
version = "2.6";
version = "2.7";
src = fetchurl {
sha256 = "1xvzkxkq1sq33r2s4f1967f4gnca4xw411sbapdkx541f856w9w9";
url = "https://humdi.net/${pname}/${pname}-${version}.tar.gz";
src = fetchFromGitHub {
owner = "vergoh";
repo = pname;
rev = "v${version}";
sha256 = "105krrc7hl5mbj89i1k3w8yzqrg4f0q96lmyv4rc7fhhds5zam2h";
};
postPatch = ''
@ -32,5 +40,6 @@ stdenv.mkDerivation rec {
homepage = "https://humdi.net/vnstat/";
license = licenses.gpl2Plus;
platforms = platforms.linux;
maintainers = with maintainers; [ evils ];
};
}