From 04b06c4116bcf6f47f4d7480f2ceb7de10597268 Mon Sep 17 00:00:00 2001 From: tv Date: Wed, 25 Nov 2026 20:11:09 +0000 Subject: tincr: install the man pages --- pkgs/rust/tincr/default.nix | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) (limited to 'pkgs/rust') diff --git a/pkgs/rust/tincr/default.nix b/pkgs/rust/tincr/default.nix index 5de7d392..127fc8e9 100644 --- a/pkgs/rust/tincr/default.nix +++ b/pkgs/rust/tincr/default.nix @@ -1,15 +1,26 @@ -{ fetchFromGitHub }: +{ fetchFromGitHub, installShellFiles, runCommand }: -{ - name = "tincr"; +let src = fetchFromGitHub { owner = "Mic92"; repo = "tincr"; rev = "457908ae775007e3f26fe5857a6ccab5eb4db2da"; hash = "sha256-rT+hOB96Fp9ALxIbkfk7rWunAuULPda6aKr9+uGCafA="; }; +in + +{ + name = "tincr"; + inherit src; # Without tinc-ffi and fuzz, which are for tests. members = [ "tincd" "tinc-tools" ]; + extraPaths = [ + (runCommand "tincr-man" { + nativeBuildInputs = [ installShellFiles ]; + } /* sh */ '' + installManPage ${src}/man/*.[0-9] + '') + ]; # tinc-crypto asks for a vendored OpenSSL on Android only, but the plan # enables the feature everywhere. crateOverrides.openssl-sys = args: { -- cgit v1.3.1