Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{
2 lib,
3 rustPlatform,
4 fetchFromGitHub,
5 nix-update-script,
6}:
7
8rustPlatform.buildRustPackage (finalAttrs: {
9 pname = "netns-proxy";
10 version = "0.2.1";
11
12 src = fetchFromGitHub {
13 owner = "fooker";
14 repo = "netns-proxy";
15 tag = "v${finalAttrs.version}";
16 hash = "sha256-sTOhoiBCKognc5SIj9SVfhyjnuatHbIRNtQ73SxWX+Q=";
17 };
18
19 cargoHash = "sha256-rf4cazRrHxHdT4U58sJtAHU2pfZ5+oAerSVdEt9/bGA=";
20
21 passthru.updateScript = nix-update-script { };
22
23 meta = {
24 description = "Simple and slim proxy to forward ports from and into linux network namespaces";
25 homepage = "https://github.com/fooker/netns-proxy";
26 license = lib.licenses.mit;
27 platforms = lib.platforms.linux;
28 mainProgram = "netns-proxy";
29 maintainers = with lib.maintainers; [ fooker ];
30 };
31})