From 661294831548257084f2b09ecfe698dd3b4ec00d Mon Sep 17 00:00:00 2001 From: Azat Bahawi Date: Wed, 19 Oct 2022 21:42:57 +0300 Subject: [PATCH] rfc: init at 0.2.6 --- pkgs/tools/misc/rfc/default.nix | 48 +++++++++++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 50 insertions(+) create mode 100644 pkgs/tools/misc/rfc/default.nix diff --git a/pkgs/tools/misc/rfc/default.nix b/pkgs/tools/misc/rfc/default.nix new file mode 100644 index 000000000000..e58c35fef3bd --- /dev/null +++ b/pkgs/tools/misc/rfc/default.nix @@ -0,0 +1,48 @@ +{ lib +, stdenvNoCC +, fetchFromGitHub +, curl +, installShellFiles +, makeWrapper +}: + +stdenvNoCC.mkDerivation rec { + pname = "rfc"; + version = "0.2.6"; + + src = fetchFromGitHub { + owner = "bfontaine"; + repo = "rfc"; + rev = "v${version}"; + hash = "sha256-dfaeTdJiJuKp8/k6LBP+RC60gTRHfHR5hhLD4ZWJufE="; + }; + + 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; { + description = "A tool to read RFCs from the command line"; + 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; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 7a2194ba1c97..6b6463aaaf9a 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -36742,6 +36742,8 @@ with pkgs; renderizer = callPackage ../development/tools/renderizer {}; + rfc = callPackage ../tools/misc/rfc { }; + rfc-bibtex = python3Packages.callPackage ../development/python-modules/rfc-bibtex { }; pick-colour-picker = python3Packages.callPackage ../applications/graphics/pick-colour-picker {