Files
Ihar HrachyshkaandWolfgang Walther 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

55 lines
969 B
Nix

{
lib,
fetchFromGitHub,
stdenvNoCC,
w3m,
curl,
jq,
makeWrapper,
installShellFiles,
xclip,
}:
stdenvNoCC.mkDerivation rec {
pname = "tmpmail";
version = "1.2.3";
src = fetchFromGitHub {
owner = "sdushantha";
repo = "tmpmail";
rev = "v${version}";
sha256 = "sha256-s4c1M4YHK/CNpH7nPt7rRqlkLUZrpBXvAVS/qxCai9c=";
};
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
xclip
]
}
'';
meta = {
homepage = "https://github.com/sdushantha/tmpmail";
description = "Temporary email right from your terminal written in POSIX sh";
license = lib.licenses.mit;
maintainers = [ ];
mainProgram = "tmpmail";
};
}