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