forked from
lass.pds.lassul.us/superconfig
This repository has no description
1.2 kB
54 lines
1{
2 lib,
3 rustPlatform,
4 fetchFromGitHub,
5 installShellFiles,
6 pkg-config,
7 openssl,
8}:
9
10rustPlatform.buildRustPackage {
11 pname = "tincr";
12 version = "0-unstable-2026-09-07";
13
14 src = fetchFromGitHub {
15 owner = "Mic92";
16 repo = "tincr";
17 rev = "da74995ab9257057dcfce1d8b12926c77d81bc43";
18 hash = "sha256-oslhal/av02Ov8WOhgwVu14Juibrs7G/qVN5cA9Dqvo=";
19 };
20
21 cargoHash = "sha256-IaVZzNWxVIpzlLtE4xzt+gIBeIV6xX4/3C/eh1tlE04=";
22
23 # Just the deployable bin crates; --workspace would pull tinc-ffi's cc.
24 cargoBuildFlags = [
25 "-p"
26 "tincd"
27 "-p"
28 "tinc-tools"
29 ];
30
31 # netns tests need bwrap+userns the build sandbox lacks.
32 doCheck = false;
33
34 # tinc-crypto's ChaPoly backend links openssl-sys against system openssl.
35 nativeBuildInputs = [
36 installShellFiles
37 pkg-config
38 ];
39 buildInputs = [ openssl ];
40
41 postInstall = ''
42 installManPage man/*.[0-9]
43 '';
44
45 passthru.updateScript = ./update.sh;
46
47 meta = {
48 description = "Drop-in Rust rewrite of tinc 1.1 VPN (SPTPS-only, Ed25519)";
49 homepage = "https://github.com/Mic92/tincr";
50 license = lib.licenses.gpl2Plus;
51 mainProgram = "tincd";
52 platforms = lib.platforms.linux ++ lib.platforms.darwin;
53 };
54}