nixpkgs/pkgs/applications/networking/tmpmail/default.nix

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

34 lines
888 B
Nix
Raw Normal View History

2022-05-11 02:22:46 +00:00
{ lib, fetchFromGitHub, stdenvNoCC, w3m, curl, jq, makeWrapper, installShellFiles, xclip }:
2021-04-16 18:23:56 +00:00
stdenvNoCC.mkDerivation rec {
pname = "tmpmail";
2022-05-11 02:22:46 +00:00
version = "1.2.3";
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}";
2022-05-11 02:22:46 +00:00
sha256 = "sha256-s4c1M4YHK/CNpH7nPt7rRqlkLUZrpBXvAVS/qxCai9c=";
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
2022-05-11 02:22:46 +00:00
wrapProgram $out/bin/tmpmail --prefix PATH : ${lib.makeBinPath [ w3m curl jq xclip ]}
2021-04-16 18:23:56 +00:00
'';
meta = with lib; {
homepage = "https://github.com/sdushantha/tmpmail";
description = "A temporary email right from your terminal written in POSIX sh ";
license = licenses.mit;
maintainers = [ maintainers.lom ];
2021-04-16 18:23:56 +00:00
};
}