tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
rfc: init at 0.2.6
Azat Bahawi
3 years ago
66129483
2df2b528
+50
2 changed files
expand all
collapse all
unified
split
pkgs
tools
misc
rfc
default.nix
top-level
all-packages.nix
+48
pkgs/tools/misc/rfc/default.nix
···
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
···
1
+
{ lib
2
+
, stdenvNoCC
3
+
, fetchFromGitHub
4
+
, curl
5
+
, installShellFiles
6
+
, makeWrapper
7
+
}:
8
+
9
+
stdenvNoCC.mkDerivation rec {
10
+
pname = "rfc";
11
+
version = "0.2.6";
12
+
13
+
src = fetchFromGitHub {
14
+
owner = "bfontaine";
15
+
repo = "rfc";
16
+
rev = "v${version}";
17
+
hash = "sha256-dfaeTdJiJuKp8/k6LBP+RC60gTRHfHR5hhLD4ZWJufE=";
18
+
};
19
+
20
+
nativeBuildInputs = [ installShellFiles makeWrapper ];
21
+
22
+
dontConfigure = true;
23
+
dontBuild = true;
24
+
25
+
installPhase = ''
26
+
runHook preInstall
27
+
28
+
install -Dm755 -t $out/bin rfc
29
+
wrapProgram $out/bin/rfc \
30
+
--prefix PATH : ${lib.makeBinPath [ curl ]}
31
+
installManPage man/rfc.1
32
+
33
+
runHook postInstall
34
+
'';
35
+
36
+
meta = with lib; {
37
+
description = "A tool to read RFCs from the command line";
38
+
longDescription = ''
39
+
rfc is a little tool written in Bash to read RFCs from the command-line.
40
+
It fetches RFCs and drafts from the Web and caches them locally.
41
+
'';
42
+
homepage = "https://github.com/bfontaine/rfc";
43
+
changelog = "https://github.com/bfontaine/rfc/blob/${src.rev}/CHANGELOG.md";
44
+
license = licenses.mit;
45
+
maintainers = with maintainers; [ azahi ];
46
+
platforms = platforms.all;
47
+
};
48
+
}
+2
pkgs/top-level/all-packages.nix
···
36742
36743
renderizer = callPackage ../development/tools/renderizer {};
36744
0
0
36745
rfc-bibtex = python3Packages.callPackage ../development/python-modules/rfc-bibtex { };
36746
36747
pick-colour-picker = python3Packages.callPackage ../applications/graphics/pick-colour-picker {
···
36742
36743
renderizer = callPackage ../development/tools/renderizer {};
36744
36745
+
rfc = callPackage ../tools/misc/rfc { };
36746
+
36747
rfc-bibtex = python3Packages.callPackage ../development/python-modules/rfc-bibtex { };
36748
36749
pick-colour-picker = python3Packages.callPackage ../applications/graphics/pick-colour-picker {