From 4d1c3bd14bcae9424552cdeffce72955e6bec255 Mon Sep 17 00:00:00 2001 From: Daiderd Jordan Date: Mon, 18 Jul 2016 23:03:30 +0200 Subject: [PATCH] newrelic-sysmond: use archive url --- .../monitoring/newrelic-sysmond/default.nix | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/pkgs/servers/monitoring/newrelic-sysmond/default.nix b/pkgs/servers/monitoring/newrelic-sysmond/default.nix index 8c19eebe2ac2..e9a9fcff2b93 100644 --- a/pkgs/servers/monitoring/newrelic-sysmond/default.nix +++ b/pkgs/servers/monitoring/newrelic-sysmond/default.nix @@ -1,12 +1,11 @@ { stdenv, fetchurl }: -assert stdenv.system == "x86_64-linux"; - stdenv.mkDerivation rec { - name = "newrelic-sysmond-2.3.0.132"; + name = "newrelic-sysmond-${version}"; + version = "2.3.0.132"; src = fetchurl { - url = "http://download.newrelic.com/server_monitor/release/newrelic-sysmond-2.3.0.132-linux.tar.gz"; + url = "http://download.newrelic.com/server_monitor/archive/${version}/newrelic-sysmond-${version}-linux.tar.gz"; sha256 = "0cdvffdsadfahfn1779zjfawz6l77awab3g9mw43vsba1568jh4f"; }; @@ -17,11 +16,11 @@ stdenv.mkDerivation rec { $out/bin/nrsysmond ''; - meta = { - homepage = http://newrelic.com/; - + meta = with stdenv.lib; { description = "System-wide monitoring for newrelic"; - - license = stdenv.lib.licenses.unfree; + homepage = http://newrelic.com/; + license = licenses.unfree; + platforms = platforms.linux; + maintainers = with maintainers; [ lnl7 ]; }; }