pcap2socks: init at 0.6.2
This commit is contained in:
parent
8adf33b6fd
commit
d0007c987b
4 changed files with 1090 additions and 12 deletions
|
@ -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 { };
|
||||
}
|
||||
|
|
|
@ -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
1054
pkgs/pcap2socks/Cargo.lock
generated
Normal file
File diff suppressed because it is too large
Load diff
33
pkgs/pcap2socks/default.nix
Normal file
33
pkgs/pcap2socks/default.nix
Normal 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";
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue