nixpkgs-suyu/pkgs/tools/admin/ssl-cert-check/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

60 lines
1.1 KiB
Nix
Raw Normal View History

2021-04-27 13:39:38 +02:00
{ lib
, stdenv
, coreutils
2018-06-10 22:06:27 +02:00
, fetchFromGitHub
2021-04-27 13:39:38 +02:00
, findutils
, gawk
2018-06-10 22:06:27 +02:00
, gnugrep
, gnused
2021-04-27 13:39:38 +02:00
, makeWrapper
2018-06-10 22:06:27 +02:00
, mktemp
2021-04-27 13:39:38 +02:00
, openssl
, which
2018-06-10 22:06:27 +02:00
}:
stdenv.mkDerivation rec {
pname = "ssl-cert-check";
2021-04-27 13:39:38 +02:00
version = "4.14";
2018-06-10 22:06:27 +02:00
src = fetchFromGitHub {
owner = "Matty9191";
repo = pname;
2021-04-27 13:39:38 +02:00
rev = "4056ceeab5abc0e39f4e0ea40cd54147253a3369";
sha256 = "07k2n4l68hykraxvy030djc208z8rqff3kc7wy4ib9g6qj7s4mif";
2018-06-10 22:06:27 +02:00
};
2021-04-27 13:39:38 +02:00
nativeBuildInputs = [
makeWrapper
];
2018-06-10 22:06:27 +02:00
buildInputs = [
coreutils
findutils
2021-04-27 13:39:38 +02:00
gawk
gnugrep
gnused
mktemp
openssl
which
2018-06-10 22:06:27 +02: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 10:19:50 +01:00
--set PATH "${lib.makeBinPath buildInputs}"
2018-06-10 22:06:27 +02:00
'';
meta = with lib; {
2021-04-27 13:39:38 +02:00
description = "Bourne shell script that can be used to report on expiring SSL certificates";
homepage = "https://github.com/Matty9191/ssl-cert-check";
2021-04-27 13:39:38 +02:00
license = licenses.gpl2Plus;
maintainers = with maintainers; [ ryantm ];
2018-06-10 22:06:27 +02:00
platforms = platforms.linux;
};
}