fixing munin (broken by latest version update) also switch to fetchgit
This commit is contained in:
parent
7f2559272b
commit
a39490d709
@ -1,4 +1,4 @@
|
|||||||
{ stdenv, fetchurl, makeWrapper, which, coreutils, rrdtool, perl, perlPackages
|
{ stdenv, fetchgit, makeWrapper, which, coreutils, rrdtool, perl, perlPackages
|
||||||
, python, ruby, openjdk, nettools
|
, python, ruby, openjdk, nettools
|
||||||
}:
|
}:
|
||||||
|
|
||||||
@ -6,9 +6,10 @@ stdenv.mkDerivation rec {
|
|||||||
version = "2.0.19";
|
version = "2.0.19";
|
||||||
name = "munin-${version}";
|
name = "munin-${version}";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchgit {
|
||||||
url = "https://github.com/munin-monitoring/munin/archive/${version}.tar.gz";
|
url = "git://github.com/munin-monitoring/munin.git";
|
||||||
sha256 = "10y9kmygd27mygvfkvn01dirb8glna9jzh140dcbci7yz7rrhdqh";
|
rev = "refs/tags/${version}";
|
||||||
|
sha256 = "0027rrdrmcql68b475jlxnfgkijbfngynkjpdii6fgaszswqz3ay";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
@ -68,7 +69,8 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
preBuild = ''
|
preBuild = ''
|
||||||
substituteInPlace "Makefile" \
|
substituteInPlace "Makefile" \
|
||||||
--replace "/bin/pwd" "pwd"
|
--replace "/bin/pwd" "pwd" \
|
||||||
|
--replace "HTMLOld.3pm" "HTMLOld.3"
|
||||||
|
|
||||||
# munin checks at build time if user/group exists, unpure
|
# munin checks at build time if user/group exists, unpure
|
||||||
sed -i '/CHECKUSER/d' Makefile
|
sed -i '/CHECKUSER/d' Makefile
|
||||||
|
Loading…
x
Reference in New Issue
Block a user