nixpkgs/pkgs/development/tools/sslmate/default.nix
Ryan Mulligan 3d13c892e8 sslmate: 1.5.0 -> 1.6.0
Semi-automatic update. These checks were performed:

- built on NixOS
- ran `/nix/store/cifmnprcfrgiz551lg7n5js4fblmhrr4-sslmate-1.6.0/bin/sslmate help` got 0 exit code
- ran `/nix/store/cifmnprcfrgiz551lg7n5js4fblmhrr4-sslmate-1.6.0/bin/sslmate version` and found version 1.6.0
- found 1.6.0 with grep in /nix/store/cifmnprcfrgiz551lg7n5js4fblmhrr4-sslmate-1.6.0
- found 1.6.0 in filename of file in /nix/store/cifmnprcfrgiz551lg7n5js4fblmhrr4-sslmate-1.6.0

cc "@domenkozar"
2018-02-28 12:37:31 +01:00

32 lines
834 B
Nix

{ stdenv, fetchurl, perlPackages, perl, makeWrapper, openssl }:
stdenv.mkDerivation rec {
name = "sslmate-1.6.0";
src = fetchurl {
url = "https://packages.sslmate.com/other/${name}.tar.gz";
sha256 = "1ypabdk0nlqjzpmn3m1szjyw7yq20svgbm92sqd5wqmsapyn3a6s";
};
makeFlags = "PREFIX=$(out)";
buildInputs = [ perl makeWrapper ];
postInstall = ''
wrapProgram $out/bin/sslmate --prefix PERL5LIB : \
"${with perlPackages; stdenv.lib.makePerlPath [
URI
JSONPP
TermReadKey
]}" \
--prefix PATH : "${openssl.bin}/bin"
'';
meta = with stdenv.lib; {
homepage = https://sslmate.com;
maintainers = [ maintainers.domenkozar ];
description = "Easy to buy, deploy, and manage your SSL certs";
platforms = platforms.unix;
license = licenses.mit; # X11
};
}