mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-27 15:23:26 +00:00
571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
61 lines
1.1 KiB
Nix
61 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 = pname;
|
|
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;
|
|
};
|
|
}
|