about summary refs log tree commit diff
path: root/pkgs/tools/system/netdata
diff options
context:
space:
mode:
authorMario Rodas <marsam@users.noreply.github.com>2018-11-14 11:01:41 -0500
committerMario Rodas <marsam@users.noreply.github.com>2018-11-16 11:24:27 -0500
commit49ac683e70a11caa2702572619fa3c394346e572 (patch)
treec5279bec569226f7438d5ff0b186e5cd082bd3a8 /pkgs/tools/system/netdata
parentd59307e54c63daf42d98288ba4c7132ccc02daf2 (diff)
downloadnixlib-49ac683e70a11caa2702572619fa3c394346e572.tar
nixlib-49ac683e70a11caa2702572619fa3c394346e572.tar.gz
nixlib-49ac683e70a11caa2702572619fa3c394346e572.tar.bz2
nixlib-49ac683e70a11caa2702572619fa3c394346e572.tar.lz
nixlib-49ac683e70a11caa2702572619fa3c394346e572.tar.xz
nixlib-49ac683e70a11caa2702572619fa3c394346e572.tar.zst
nixlib-49ac683e70a11caa2702572619fa3c394346e572.zip
netdata: 1.10.0 -> 1.11.0
Diffstat (limited to 'pkgs/tools/system/netdata')
-rw-r--r--pkgs/tools/system/netdata/default.nix27
1 files changed, 12 insertions, 15 deletions
diff --git a/pkgs/tools/system/netdata/default.nix b/pkgs/tools/system/netdata/default.nix
index 6f86647f4c70..ccbc11d212ae 100644
--- a/pkgs/tools/system/netdata/default.nix
+++ b/pkgs/tools/system/netdata/default.nix
@@ -1,39 +1,36 @@
-{ stdenv, fetchFromGitHub, autoreconfHook, zlib, pkgconfig, libuuid }:
+{ stdenv, fetchurl, autoreconfHook, pkgconfig, zlib, libuuid, libossp_uuid, CoreFoundation, IOKit }:
 
 stdenv.mkDerivation rec{
-  version = "1.10.0";
+  version = "1.11.0";
   name = "netdata-${version}";
 
-  src = fetchFromGitHub {
-    rev = "v${version}";
-    owner = "firehol";
-    repo = "netdata";
-    sha256 = "02spfisabjkkgd9fairldlf84n83vbv2xafg0g5jrpfa972pjl9r";
+  src = fetchurl {
+    url = "https://github.com/netdata/netdata/releases/download/v${version}/netdata-v${version}.tar.gz";
+    sha256 = "17b14w34jif6bviw3s81imbazkvvafwxff7d5zjy6wicq88q8b64";
   };
 
   nativeBuildInputs = [ autoreconfHook pkgconfig ];
-  buildInputs = [ zlib libuuid ];
+  buildInputs = [ zlib ]
+    ++ (if stdenv.isDarwin then [ libossp_uuid CoreFoundation IOKit ] else [ libuuid ]);
 
   # Build will fail trying to create /var/{cache,lib,log}/netdata without this
   postPatch = ''
-   sed -i '/dist_.*_DATA = \.keep/d' src/Makefile.am
+    substituteInPlace Makefile.am --replace "installer/.keep" ""
   '';
 
   configureFlags = [
     "--localstatedir=/var"
   ];
 
-  # App fails on runtime if the default config file is not detected
-  # The upstream installer does prepare an empty file too
-  postInstall = ''
-    touch $out/etc/netdata/netdata.conf
+  postFixup = ''
+    rm -r $out/sbin
   '';
 
   meta = with stdenv.lib; {
     description = "Real-time performance monitoring tool";
-    homepage = http://netdata.firehol.org;
+    homepage = https://my-netdata.io/;
     license = licenses.gpl3;
-    platforms = platforms.linux;
+    platforms = platforms.unix;
     maintainers = [ maintainers.lethalman ];
   };