{ stdenv, fetchFromGitHub, file, openssl, makeWrapper, which, curl }: stdenv.mkDerivation rec { name = "check_ssl_cert-${version}"; version = "1.73.0"; src = fetchFromGitHub { owner = "matteocorti"; repo = "check_ssl_cert"; rev = "v${version}"; sha256 = "0ymaypsv1s5pmk8fg9d67khcjy5h7vjbg6hd1fgslp92qcw90dqa"; }; nativeBuildInputs = [ makeWrapper ]; makeFlags = [ "DESTDIR=$(out)/bin" "MANDIR=$(out)/share/man" ]; postInstall = '' wrapProgram $out/bin/check_ssl_cert \ --prefix PATH : "${stdenv.lib.makeBinPath [ openssl file which curl ]}" ''; meta = with stdenv.lib; { description = "A Nagios plugin to check the CA and validity of an X.509 certificate"; license = licenses.gpl3; platforms = platforms.all; }; }