This repository has no description
1.0 kB
47 lines
1{
2 lib,
3 rustPlatform,
4 fetchFromGitHub,
5 installShellFiles,
6}:
7
8rustPlatform.buildRustPackage {
9 pname = "tincr";
10 version = "0-unstable-2026-05-15";
11
12 src = fetchFromGitHub {
13 owner = "Mic92";
14 repo = "tincr";
15 rev = "7f622240";
16 hash = "sha256-V1Q7G/PP0w5iDgvIntU4YStniLBb6OUg6F1aMfRl84M=";
17 };
18
19 cargoHash = "sha256-3zq9SoOiBRqwXWr7N0NRW+oM2OLu8/IY3B3WCCZ0Chw=";
20
21 # Just the deployable bin crates; --workspace would pull tinc-ffi's cc.
22 cargoBuildFlags = [
23 "-p"
24 "tincd"
25 "-p"
26 "tinc-tools"
27 ];
28
29 # netns tests need bwrap+userns the build sandbox lacks.
30 doCheck = false;
31
32 nativeBuildInputs = [ installShellFiles ];
33
34 postInstall = ''
35 installManPage man/*.[0-9]
36 '';
37
38 passthru.updateScript = ./update.sh;
39
40 meta = {
41 description = "Drop-in Rust rewrite of tinc 1.1 VPN (SPTPS-only, Ed25519)";
42 homepage = "https://github.com/Mic92/tincr";
43 license = lib.licenses.gpl2Plus;
44 mainProgram = "tincd";
45 platforms = lib.platforms.linux;
46 };
47}