mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 23:13:19 +00:00
Merge pull request #2760 from offlinehacker/pkgs/grafana/add
Add grafana, A Graphite & InfluxDB Dashboard and Graph Editor
This commit is contained in:
commit
fdc78ad9e0
29
pkgs/development/tools/misc/grafana/default.nix
Normal file
29
pkgs/development/tools/misc/grafana/default.nix
Normal file
@ -0,0 +1,29 @@
|
||||
{ stdenv, fetchurl, unzip, conf ? null }:
|
||||
|
||||
with stdenv.lib;
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "grafana-${version}";
|
||||
version = "1.5.4";
|
||||
|
||||
src = fetchurl {
|
||||
url = "http://grafanarel.s3.amazonaws.com/${name}.zip";
|
||||
sha256 = "fee7334efba967142955be2fa39ecae7bca0cc9b7a76c301430746be4fc7ec6d";
|
||||
};
|
||||
|
||||
buildInputs = [ unzip ];
|
||||
|
||||
phases = ["unpackPhase" "installPhase"];
|
||||
installPhase = ''
|
||||
ensureDir $out && cp -R * $out
|
||||
${optionalString (conf!=null) ''cp ${conf} $out/config.js''}
|
||||
'';
|
||||
|
||||
meta = {
|
||||
description = "A Graphite & InfluxDB Dashboard and Graph Editor";
|
||||
homepage = http://grafana.org/;
|
||||
license = licenses.asl20;
|
||||
|
||||
maintainers = [ maintainers.offline ];
|
||||
};
|
||||
}
|
@ -1158,6 +1158,8 @@ let
|
||||
|
||||
gptfdisk = callPackage ../tools/system/gptfdisk { };
|
||||
|
||||
grafana = callPackage ../development/tools/misc/grafana { };
|
||||
|
||||
grafx2 = callPackage ../applications/graphics/grafx2 {};
|
||||
|
||||
graphviz = callPackage ../tools/graphics/graphviz { };
|
||||
|
Loading…
Reference in New Issue
Block a user