git.iko.soy/typeable/nixpkgs
on master help sign in
check_ssl_cert: init at 1.51.0 (#28069)
commit1db52734ad19aeea18f30f54a6f543f5b0cd1764 authorMarius Metzger <mariusmetzger@versanet.de> dateWed 9 Aug 2017, 12:41 (9 years ago) parent345b35c
2 files changed+35
pkgs/servers/monitoring/nagios/plugins/check_ssl_cert.nix+33 pkgs/top-level/all-packages.nix+2
pkgs/servers/monitoring/nagios/plugins/check_ssl_cert.nixnew file+33
@@ -0,0 +1,33 @@
1+{ pkgs, openssl }:
2+#with import <nixpkgs> {};
3+with pkgs;
4+
5+stdenv.mkDerivation rec {
6+ name = "check_ssl_cert-${version}";
7+ version = "1.51.0";
8+
9+ src = fetchgit {
10+ url = https://github.com/matteocorti/check_ssl_cert;
11+ rev = "4e31a82008a48cd6efb82914e0bb1e136b339a31"; # v1.51.0
12+ sha256 = "1x1lcxxgzvjznn1iyla4hmc02c0vqdbzvd8xj61niknm02q07lcf";
13+ };
14+
15+ buildInputs = [ makeWrapper file ];
16+ #nativeBuildInputs = [ makeWrapper ];
17+
18+ phases = [ "unpackPhase" "installPhase" ];
19+
20+ installPhase = ''
21+ mkdir -p $out/bin
22+ mkdir -p $out/man
23+ cp check_ssl_cert $out/bin
24+ cp check_ssl_cert.1 $out/man1
25+ wrapProgram $out/bin/check_ssl_cert \
26+ --prefix PATH : "${openssl}/bin:${file}/bin"
27+ '';
28+
29+ meta = {
30+ description = "A Nagios plugin to check the CA and validity of an X.509 certificate";
31+ license = stdenv.lib.licenses.gpl3;
32+ };
33+}
pkgs/top-level/all-packages.nix+2
@@ -11360,6 +11360,8 @@ with pkgs;
1136011360 munin = callPackage ../servers/monitoring/munin { };
1136111361
1136211362 nagiosPluginsOfficial = callPackage ../servers/monitoring/nagios/plugins/official-2.x.nix { };
11363+
11364+ checkSSLCert = callPackage ../servers/monitoring/nagios/plugins/check_ssl_cert.nix { };
1136311365
1136411366 neo4j = callPackage ../servers/nosql/neo4j { };
1136511367