2022-05-18 14:49:53 +00:00
|
|
|
{ lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
, rustPlatform
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-05-18 14:49:53 +00:00
|
|
|
let
|
|
|
|
version = "0.4.0";
|
|
|
|
|
|
|
|
in
|
|
|
|
rustPlatform.buildRustPackage {
|
|
|
|
|
|
|
|
pname = "systemfd";
|
|
|
|
inherit version;
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
repo = "systemfd";
|
|
|
|
owner = "mitsuhiko";
|
|
|
|
rev = version;
|
|
|
|
sha256 = "sha256-HUJgYPD4C9fMUYKpzmIy9gDT6HAZDWw1JLMKLgzRQTY=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
2022-05-18 14:49:53 +00:00
|
|
|
|
|
|
|
cargoSha256 = "sha256-UhfE9Q5E79rN2mjkNB5IAN/J0fbpoy9CmM6ojHQcFP0=";
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "A convenient helper for passing sockets into another process";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "systemfd";
|
2022-05-18 14:49:53 +00:00
|
|
|
homepage = "https://github.com/mitsuhiko/systemfd";
|
|
|
|
license = lib.licenses.asl20;
|
|
|
|
maintainers = [ lib.maintainers.adisbladis ];
|
|
|
|
platforms = lib.platforms.unix;
|
|
|
|
};
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
}
|