{ fetchFromGitHub, installShellFiles, runCommand }: let pin = (builtins.fromJSON (builtins.readFile ../../../sources.json)).tincr; src = fetchFromGitHub { owner = "Mic92"; repo = "tincr"; inherit (pin) rev hash; }; 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: { features = builtins.filter (feature: feature != "vendored") args.features; }; }