aboutsummaryrefslogtreecommitdiff
path: root/pkgs/nagios-plugins-rabbitmq
diff options
context:
space:
mode:
authorIgor Pashev <pashev.igor@gmail.com>2018-12-11 18:10:48 +0300
committerIgor Pashev <pashev.igor@gmail.com>2018-12-11 18:10:48 +0300
commit8b0968b2054d3bb8d90b5ac056727f7c2ebeaed3 (patch)
treed03b70f693463fc836a8dbe4240424d2547530c8 /pkgs/nagios-plugins-rabbitmq
parentc4273035cf5876e3ba8ed2c6b492d31c2de290ee (diff)
downloadnixsap-8b0968b2054d3bb8d90b5ac056727f7c2ebeaed3.tar.gz
(* HUGE *) Use nixpkgs overlays
Diffstat (limited to 'pkgs/nagios-plugins-rabbitmq')
-rw-r--r--pkgs/nagios-plugins-rabbitmq/default.nix36
1 files changed, 36 insertions, 0 deletions
diff --git a/pkgs/nagios-plugins-rabbitmq/default.nix b/pkgs/nagios-plugins-rabbitmq/default.nix
new file mode 100644
index 0000000..6ecb2e4
--- /dev/null
+++ b/pkgs/nagios-plugins-rabbitmq/default.nix
@@ -0,0 +1,36 @@
+{ fetchurl
+, makeWrapper
+, perl
+, perlPackages
+, stdenv
+}:
+
+stdenv.mkDerivation rec {
+ version = "2.0.3";
+ name = "nagios-plugins-rabbitmq-${version}";
+
+ src = fetchurl {
+ url = "https://github.com/nagios-plugins-rabbitmq/nagios-plugins-rabbitmq/archive/${version}.tar.gz";
+ sha256 = "1fw40hzvb8sk5ss0hvrgv338lr019d2q9cc9ayy4hvk1c5bh3ljb";
+ };
+
+ buildInputs = [
+ makeWrapper
+ perl
+ perlPackages.JSON
+ perlPackages.LWPUserAgent
+ perlPackages.ModuleBuild
+ perlPackages.MonitoringPlugin
+ perlPackages.URI
+ ];
+
+ buildPhase = "perl Build.PL --prefix=$out; ./Build build";
+ installPhase = ''
+ ./Build install
+
+ for n in "$out/bin/"*; do
+ wrapProgram "$n" --prefix PERL5LIB : "$PERL5LIB"
+ done
+ '';
+}
+