nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 fetchFromGitHub,
4 python3,
5 rsync,
6 nix-update-script,
7}:
8python3.pkgs.buildPythonApplication rec {
9 name = "ietf-cli";
10 version = "1.29";
11 pyproject = false;
12
13 src = fetchFromGitHub {
14 owner = "paulehoffman";
15 repo = "ietf-cli";
16 tag = version;
17 hash = "sha256-xpwUUyTq/8WOUjssNkXOvxBYPgL7pmVVPz6abKetVc8=";
18 };
19 buildInputs = [ rsync ];
20
21 installPhase = ''
22 runHook preInstall
23
24 install -Dm755 ./ietf -t $out/bin
25
26 runHook postInstall
27 '';
28
29 passthru.updateScript = nix-update-script { };
30
31 meta = {
32 description = "Command-line interface for accessing IETF documents and other information";
33 mainProgram = "ietf";
34 homepage = "https://github.com/paulehoffman/ietf-cli";
35 license = lib.licenses.wtfpl;
36 maintainers = with lib.maintainers; [ lilioid ];
37 platforms = lib.lists.intersectLists python3.meta.platforms rsync.meta.platforms;
38 };
39}