summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorGuillaume Girol <symphorien@users.noreply.github.com>2021-05-20 19:28:29 +0000
committerGitHub <noreply@github.com>2021-05-20 19:28:29 +0000
commit9ae7b7e70622afc6148fbbf045a8867d496b3f6d (patch)
tree8367fff11e9b5a7119dd2d5c99022440d13bf219 /pkgs
parentd65876bd06debac9369937d62c74ab4a9a87d8f0 (diff)
parent74b0ac3e88a54c5929c82637899a3d557b7bd500 (diff)
Merge pull request #123655 from evils/vnstat
vnstat: 2.6 -> 2.7
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/applications/networking/vnstat/default.nix19
1 files changed, 14 insertions, 5 deletions
diff --git a/pkgs/applications/networking/vnstat/default.nix b/pkgs/applications/networking/vnstat/default.nix
index 60b24a6619c07..f85f00bf0ae09 100644
--- a/pkgs/applications/networking/vnstat/default.nix
+++ b/pkgs/applications/networking/vnstat/default.nix
@@ -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 ];
   };
 }