2021-05-03 20:48:10 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, coreutils
|
2020-04-24 23:36:52 +00:00
|
|
|
, fetchFromGitHub
|
2021-05-03 20:48:10 +00:00
|
|
|
, findutils
|
|
|
|
, gawk
|
2020-04-24 23:36:52 +00:00
|
|
|
, gnugrep
|
|
|
|
, gnused
|
2021-05-03 20:48:10 +00:00
|
|
|
, makeWrapper
|
2020-04-24 23:36:52 +00:00
|
|
|
, mktemp
|
2021-05-03 20:48:10 +00:00
|
|
|
, openssl
|
|
|
|
, which
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "ssl-cert-check";
|
2021-05-03 20:48:10 +00:00
|
|
|
version = "4.14";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Matty9191";
|
|
|
|
repo = pname;
|
2021-05-03 20:48:10 +00:00
|
|
|
rev = "4056ceeab5abc0e39f4e0ea40cd54147253a3369";
|
|
|
|
sha256 = "07k2n4l68hykraxvy030djc208z8rqff3kc7wy4ib9g6qj7s4mif";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-05-03 20:48:10 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
makeWrapper
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
coreutils
|
|
|
|
findutils
|
2021-05-03 20:48:10 +00:00
|
|
|
gawk
|
|
|
|
gnugrep
|
|
|
|
gnused
|
|
|
|
mktemp
|
|
|
|
openssl
|
|
|
|
which
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
prePatch = ''
|
|
|
|
substituteInPlace $pname --replace PATH= NOT_PATH=
|
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
cp $pname $out/bin/$pname
|
|
|
|
wrapProgram $out/bin/$pname \
|
2021-01-15 22:18:51 +00:00
|
|
|
--set PATH "${lib.makeBinPath buildInputs}"
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2021-05-03 20:48:10 +00:00
|
|
|
description = "Bourne shell script that can be used to report on expiring SSL certificates";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "ssl-cert-check";
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://github.com/Matty9191/ssl-cert-check";
|
2021-05-03 20:48:10 +00:00
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
maintainers = with maintainers; [ ryantm ];
|
2020-04-24 23:36:52 +00:00
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|