Skip to content

Commit

Permalink
nginx-prometheus-exporter: v1.0.0 -> v1.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
nginx-bot committed Jan 9, 2024
1 parent 756c4e4 commit 4bc3598
Showing 1 changed file with 69 additions and 0 deletions.
69 changes: 69 additions & 0 deletions pkgs/nginx-prometheus-exporter/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
# This file was generated by GoReleaser. DO NOT EDIT.
# vim: set ft=nix ts=2 sw=2 sts=2 et sta
{
system ? builtins.currentSystem
, pkgs
, lib
, fetchurl
, installShellFiles
}:
let
shaMap = {
i686-linux = "1wfcx3rh1nnsllq8i6d90hlxak1harv88n8ky485kx1lcx5gs5km";
x86_64-linux = "0640xxpd4rw54r4hfdwr0zh6v3w3l3f7x5vzz0bnshay0xjljcs0";
armv6l-linux = "11k8hpifa07lj016nj28gzm609abpb3zsipmsqrlskizjj0jlmbk";
armv7l-linux = "10z6s4n3h4y2ychqrkx01dvxjwppcrr22vxg2hlcs9m1yc29nbrw";
aarch64-linux = "1a84qc94qrc240dz8mq0l6cm8in24131spsgplggwn0nw8p5w5ig";
x86_64-darwin = "1dzrl59zfbrhhmbccj1fgsgnbxbx5z2axbirmnsdh0kbsrzgb2hx";
aarch64-darwin = "1jdkx2g1jmfgi5b17vid4dmckgsp3mrf6fcfbrs0bqmlayp2y25w";
};

urlMap = {
i686-linux = "https://github.com/nginxinc/nginx-prometheus-exporter/releases/download/v1.1.0/nginx-prometheus-exporter_1.1.0_linux_386.tar.gz";
x86_64-linux = "https://github.com/nginxinc/nginx-prometheus-exporter/releases/download/v1.1.0/nginx-prometheus-exporter_1.1.0_linux_amd64.tar.gz";
armv6l-linux = "https://github.com/nginxinc/nginx-prometheus-exporter/releases/download/v1.1.0/nginx-prometheus-exporter_1.1.0_linux_armv6.tar.gz";
armv7l-linux = "https://github.com/nginxinc/nginx-prometheus-exporter/releases/download/v1.1.0/nginx-prometheus-exporter_1.1.0_linux_armv7.tar.gz";
aarch64-linux = "https://github.com/nginxinc/nginx-prometheus-exporter/releases/download/v1.1.0/nginx-prometheus-exporter_1.1.0_linux_arm64.tar.gz";
x86_64-darwin = "https://github.com/nginxinc/nginx-prometheus-exporter/releases/download/v1.1.0/nginx-prometheus-exporter_1.1.0_darwin_amd64.tar.gz";
aarch64-darwin = "https://github.com/nginxinc/nginx-prometheus-exporter/releases/download/v1.1.0/nginx-prometheus-exporter_1.1.0_darwin_arm64.tar.gz";
};
in
pkgs.stdenv.mkDerivation {
pname = "nginx-prometheus-exporter";
version = "1.1.0";
src = fetchurl {
url = urlMap.${system};
sha256 = shaMap.${system};
};

sourceRoot = ".";

nativeBuildInputs = [ installShellFiles ];

installPhase = ''
mkdir -p $out/bin
cp -vr ./nginx-prometheus-exporter $out/bin/nginx-prometheus-exporter
installManPage ./manpages/nginx-prometheus-exporter.1.gz
installShellCompletion ./completions/*
'';

system = system;

meta = {
description = "NGINX Prometheus Exporter for NGINX and NGINX Plus";
homepage = "https://github.com/nginxinc/nginx-prometheus-exporter";
license = lib.licenses.asl20;

sourceProvenance = [ lib.sourceTypes.binaryNativeCode ];

platforms = [
"aarch64-darwin"
"aarch64-linux"
"armv6l-linux"
"armv7l-linux"
"i686-linux"
"x86_64-darwin"
"x86_64-linux"
];
};
}

0 comments on commit 4bc3598

Please sign in to comment.