1{ lib
2, fetchFromGitHub
3, rustPlatform
4}:
5
6let
7 version = "0.4.0";
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-HUJgYPD4C9fMUYKpzmIy9gDT6HAZDWw1JLMKLgzRQTY=";
20 };
21
22 cargoSha256 = "sha256-UhfE9Q5E79rN2mjkNB5IAN/J0fbpoy9CmM6ojHQcFP0=";
23
24 meta = {
25 description = "A convenient helper for passing sockets into another process";
26 homepage = "https://github.com/mitsuhiko/systemfd";
27 license = lib.licenses.asl20;
28 maintainers = [ lib.maintainers.adisbladis ];
29 platforms = lib.platforms.unix;
30 };
31
32}