From 4d16584c41403847d2e9689e6a2f28a96e26fe9b Mon Sep 17 00:00:00 2001 From: Casey Link Date: Mon, 18 Mar 2024 09:53:14 +0100 Subject: [PATCH] microsocks: init at 1.0.4 --- pkgs/by-name/mi/microsocks/package.nix | 33 ++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 pkgs/by-name/mi/microsocks/package.nix diff --git a/pkgs/by-name/mi/microsocks/package.nix b/pkgs/by-name/mi/microsocks/package.nix new file mode 100644 index 000000000000..8c773bc1c3fe --- /dev/null +++ b/pkgs/by-name/mi/microsocks/package.nix @@ -0,0 +1,33 @@ +{ stdenv, + fetchFromGitHub, + lib, +}: + +stdenv.mkDerivation rec { + pname = "microsocks"; + version = "1.0.4"; + + src = fetchFromGitHub { + owner = "rofl0r"; + repo = "microsocks"; + rev = "v${version}"; + hash = "sha256-cB2XMWjoZ1zLAmAfl/nqjdOyBDKZ+xtlEmqsZxjnFn0="; + }; + + installPhase = '' + runHook preInstall + + install -Dm 755 microsocks -t $out/bin/ + + runHook postInstall + ''; + + meta = { + changelog = "https://github.com/rofl0r/microsocks/releases/tag/v${version}"; + description = "Tiny, portable SOCKS5 server with very moderate resource usage"; + homepage = "https://github.com/rofl0r/microsocks"; + license = lib.licenses.mit; + mainProgram = "microsocks"; + maintainers = with lib.maintainers; [ ramblurr ]; + }; +}