summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2026-11-25 20:11:09 +0000
committertv <tv@krebsco.de>2026-11-25 21:18:59 +0000
commit04b06c4116bcf6f47f4d7480f2ceb7de10597268 (patch)
treeefb9f4dda7150b576eeeba703d5f2407420cd992
parentb4c31bdb9db512bb71f659c926b8a3dda2b4dbac (diff)
tincr: install the man pages
-rw-r--r--krops.nix6
-rw-r--r--pkgs/rust/tincr/default.nix17
2 files changed, 19 insertions, 4 deletions
diff --git a/krops.nix b/krops.nix
index a73df7fe..099bbfb7 100644
--- a/krops.nix
+++ b/krops.nix
@@ -75,7 +75,11 @@ rec {
};
# At the revision of pkgs/rust/tincr, for its NixOS module.
tincr.git = {
- ref = (import ./pkgs/rust/tincr { fetchFromGitHub = lib.id; }).src.rev;
+ ref = (import ./pkgs/rust/tincr {
+ fetchFromGitHub = lib.id;
+ installShellFiles = null;
+ runCommand = null;
+ }).src.rev;
url = "https://github.com/Mic92/tincr";
};
};
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: {