2022-10-21 18:38:19 +00:00
|
|
|
{ lib
|
|
|
|
, stdenvNoCC
|
|
|
|
, fetchFromGitHub
|
|
|
|
, curl
|
|
|
|
, installShellFiles
|
|
|
|
, makeWrapper
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenvNoCC.mkDerivation rec {
|
|
|
|
pname = "rfc";
|
2024-04-21 15:54:59 +00:00
|
|
|
version = "1.0.0";
|
2022-10-21 18:38:19 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "bfontaine";
|
|
|
|
repo = "rfc";
|
|
|
|
rev = "v${version}";
|
2024-04-21 15:54:59 +00:00
|
|
|
hash = "sha256-zN+MQtHh69PkzbrfceHFpBYCPmTg9qrOf/ML2efq6Xk=";
|
2022-10-21 18:38:19 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ installShellFiles makeWrapper ];
|
|
|
|
|
|
|
|
dontConfigure = true;
|
|
|
|
dontBuild = true;
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
runHook preInstall
|
|
|
|
|
|
|
|
install -Dm755 -t $out/bin rfc
|
|
|
|
wrapProgram $out/bin/rfc \
|
|
|
|
--prefix PATH : ${lib.makeBinPath [ curl ]}
|
|
|
|
installManPage man/rfc.1
|
|
|
|
|
|
|
|
runHook postInstall
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Tool to read RFCs from the command line";
|
2022-10-21 18:38:19 +00:00
|
|
|
longDescription = ''
|
|
|
|
rfc is a little tool written in Bash to read RFCs from the command-line.
|
|
|
|
It fetches RFCs and drafts from the Web and caches them locally.
|
|
|
|
'';
|
|
|
|
homepage = "https://github.com/bfontaine/rfc";
|
|
|
|
changelog = "https://github.com/bfontaine/rfc/blob/${src.rev}/CHANGELOG.md";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ azahi ];
|
|
|
|
platforms = platforms.all;
|
2024-01-02 11:29:13 +00:00
|
|
|
mainProgram = "rfc";
|
2022-10-21 18:38:19 +00:00
|
|
|
};
|
|
|
|
}
|