Files
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

62 lines
1.1 KiB
Nix

{
lib,
stdenv,
coreutils,
fetchFromGitHub,
findutils,
gawk,
gnugrep,
gnused,
makeWrapper,
mktemp,
openssl,
which,
}:
stdenv.mkDerivation rec {
pname = "ssl-cert-check";
version = "4.14";
src = fetchFromGitHub {
owner = "Matty9191";
repo = "ssl-cert-check";
rev = "4056ceeab5abc0e39f4e0ea40cd54147253a3369";
sha256 = "07k2n4l68hykraxvy030djc208z8rqff3kc7wy4ib9g6qj7s4mif";
};
nativeBuildInputs = [
makeWrapper
];
buildInputs = [
coreutils
findutils
gawk
gnugrep
gnused
mktemp
openssl
which
];
prePatch = ''
substituteInPlace $pname --replace PATH= NOT_PATH=
'';
installPhase = ''
mkdir -p $out/bin
cp $pname $out/bin/$pname
wrapProgram $out/bin/$pname \
--set PATH "${lib.makeBinPath buildInputs}"
'';
meta = with lib; {
description = "Bourne shell script that can be used to report on expiring SSL certificates";
mainProgram = "ssl-cert-check";
homepage = "https://github.com/Matty9191/ssl-cert-check";
license = licenses.gpl2Plus;
maintainers = with maintainers; [ ryantm ];
platforms = platforms.linux;
};
}