1{ lib
2, fetchFromGitHub
3, rustPlatform
4}:
5
6let
7 version = "0.4.2";
8
9in
10rustPlatform.buildRustPackage {
11
12 pname = "systemfd";
13 inherit version;
14
15 src = fetchFromGitHub {
16 repo = "systemfd";
17 owner = "mitsuhiko";
18 rev = version;
19 sha256 = "sha256-MASpQJkqmKpHZzMxHqAsuVO50dHHTv74Rnbv1gLapTU=";
20 };
21
22 cargoHash = "sha256-zgRbaZchdqzr+E6gqltSte9dGMnjbrM7/7t0BiNn4kA=";
23
24 meta = {
25 description = "Convenient helper for passing sockets into another process";
26 mainProgram = "systemfd";
27 homepage = "https://github.com/mitsuhiko/systemfd";
28 license = lib.licenses.asl20;
29 maintainers = [ lib.maintainers.adisbladis ];
30 platforms = lib.platforms.unix;
31 };
32
33}