pcap2socks: init at 0.6.2

This commit is contained in:
xinyangli 2024-02-04 11:44:16 +08:00
parent 8adf33b6fd
commit d0007c987b
No known key found for this signature in database
4 changed files with 1090 additions and 12 deletions

View file

@ -16,8 +16,8 @@ with pkgs;
modules = import ./modules; # NixOS modules
overlays = import ./overlays; # nixpkgs overlays
example-package = callPackage ./pkgs/example-package { };
nvboard = callPackage ./pkgs/nvboard { };
# some-qt5-package = pkgs.libsForQt5.callPackage ./pkgs/some-qt5-package { };
# ...
ieda = callPackage ./pkgs/ieda { };
abstract-machine = callPackage ./pkgs/abstract-machine { };
pcap2socks = callPackage ./pkgs/pcap2socks { };
}

View file

@ -1,9 +0,0 @@
{ stdenv }:
stdenv.mkDerivation rec {
name = "example-package-${version}";
version = "1.0";
src = ./.;
buildPhase = "echo echo Hello World > example";
installPhase = "install -Dm755 example $out";
}

1054
pkgs/pcap2socks/Cargo.lock generated Normal file

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,33 @@
{ lib
, rustPlatform
, fetchFromGitHub
}:
rustPlatform.buildRustPackage rec {
pname = "pcap2socks";
version = "0.6.2";
src = fetchFromGitHub {
owner = "xinyangli";
repo = "pcap2socks";
rev = "2c34673b0013160ee3f083f724d31b0b60ad2889";
hash = "sha256-YkSHhbybvIM8obfWnw475YVrrysgDlHQsOYPm53028Q=";
};
cargoLock = let
fixupLockFile = path: (builtins.readFile path);
in {
lockFileContents = fixupLockFile ./Cargo.lock;
outputHashes = {
"netifs-0.3.0" = "sha256-DOHEDP1iazHFOt1x5DpxRjr8KD7Sm7/RxKI492HDk3I=";
};
};
meta = with lib; {
description = "Redirect traffic to SOCKS proxy with pcap";
homepage = "https://github.com/zhxie/pcap2socks";
license = licenses.mit;
maintainers = with maintainers; [ ];
mainProgram = "pcap2socks";
};
}