fixing munin (broken by latest version update) also switch to fetchgit

+7 -5
+7 -5
pkgs/servers/monitoring/munin/default.nix
··· 1 - { stdenv, fetchurl, makeWrapper, which, coreutils, rrdtool, perl, perlPackages 2 , python, ruby, openjdk, nettools 3 }: 4 ··· 6 version = "2.0.19"; 7 name = "munin-${version}"; 8 9 - src = fetchurl { 10 - url = "https://github.com/munin-monitoring/munin/archive/${version}.tar.gz"; 11 - sha256 = "10y9kmygd27mygvfkvn01dirb8glna9jzh140dcbci7yz7rrhdqh"; 12 }; 13 14 buildInputs = [ ··· 68 69 preBuild = '' 70 substituteInPlace "Makefile" \ 71 - --replace "/bin/pwd" "pwd" 72 73 # munin checks at build time if user/group exists, unpure 74 sed -i '/CHECKUSER/d' Makefile
··· 1 + { stdenv, fetchgit, makeWrapper, which, coreutils, rrdtool, perl, perlPackages 2 , python, ruby, openjdk, nettools 3 }: 4 ··· 6 version = "2.0.19"; 7 name = "munin-${version}"; 8 9 + src = fetchgit { 10 + url = "git://github.com/munin-monitoring/munin.git"; 11 + rev = "refs/tags/${version}"; 12 + sha256 = "0027rrdrmcql68b475jlxnfgkijbfngynkjpdii6fgaszswqz3ay"; 13 }; 14 15 buildInputs = [ ··· 69 70 preBuild = '' 71 substituteInPlace "Makefile" \ 72 + --replace "/bin/pwd" "pwd" \ 73 + --replace "HTMLOld.3pm" "HTMLOld.3" 74 75 # munin checks at build time if user/group exists, unpure 76 sed -i '/CHECKUSER/d' Makefile