2021-04-16 18:23:56 +00:00
|
|
|
{ lib, fetchFromGitHub, stdenvNoCC, w3m, curl, jq, makeWrapper, installShellFiles }:
|
|
|
|
|
|
|
|
stdenvNoCC.mkDerivation rec {
|
|
|
|
pname = "tmpmail";
|
2021-12-26 04:22:35 +00:00
|
|
|
version = "1.1.9";
|
2021-04-16 18:23:56 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "sdushantha";
|
|
|
|
repo = "tmpmail";
|
2021-11-09 19:16:30 +00:00
|
|
|
rev = "v${version}";
|
2021-12-26 04:22:35 +00:00
|
|
|
sha256 = "sha256-sWcsmBUHSfo7sICXyhNhbfRFSHumObnWc7stWxcwVTg=";
|
2021-04-16 18:23:56 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
dontConfigure = true;
|
|
|
|
|
|
|
|
dontBuild = true;
|
|
|
|
|
|
|
|
nativeBuildInputs = [ makeWrapper installShellFiles ];
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
install -Dm755 -t $out/bin tmpmail
|
|
|
|
installManPage tmpmail.1
|
|
|
|
wrapProgram $out/bin/tmpmail --prefix PATH : ${lib.makeBinPath [ w3m curl jq ]}
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://github.com/sdushantha/tmpmail";
|
|
|
|
description = "A temporary email right from your terminal written in POSIX sh ";
|
|
|
|
license = licenses.mit;
|
2021-12-01 23:19:48 +00:00
|
|
|
maintainers = [ maintainers.lom ];
|
2021-04-16 18:23:56 +00:00
|
|
|
};
|
|
|
|
}
|