Add curl-unix-socket, Run HTTP requests over UNIX socket
This commit is contained in:
parent
2ba523df24
commit
3ccd8af29d
24
pkgs/tools/networking/curl-unix-socket/default.nix
Normal file
24
pkgs/tools/networking/curl-unix-socket/default.nix
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
{ stdenv, fetchFromGitHub, go }:
|
||||||
|
|
||||||
|
stdenv.mkDerivation {
|
||||||
|
name = "curl-unix-socket";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "Soulou";
|
||||||
|
repo = "curl-unix-socket";
|
||||||
|
rev = "e926dca77ba7d4a1eeae073918fdd3db92f1a350";
|
||||||
|
sha256 = "1ynrrav90y3dhk8jq2fxm3jswj5nvrffwslgykj429hk6n0czb3d";
|
||||||
|
};
|
||||||
|
|
||||||
|
buildInputs = [ go ];
|
||||||
|
buildPhase = "go build";
|
||||||
|
installPhase = "install -D curl-unix-socket* $out/bin/curl-unix-socket";
|
||||||
|
|
||||||
|
meta = with stdenv.lib; {
|
||||||
|
description = "Run HTTP requests over UNIX socket";
|
||||||
|
license = licenses.mit;
|
||||||
|
homepage = https://github.com/Soulou/curl-unix-socket;
|
||||||
|
maintainers = with maintainers; [offline];
|
||||||
|
platforms = with platforms; unix;
|
||||||
|
};
|
||||||
|
}
|
@ -855,6 +855,8 @@ let
|
|||||||
sslSupport = zlibSupport;
|
sslSupport = zlibSupport;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
curl_unix_socket = callPackage ../tools/networking/curl-unix-socket rec { };
|
||||||
|
|
||||||
cunit = callPackage ../tools/misc/cunit { };
|
cunit = callPackage ../tools/misc/cunit { };
|
||||||
|
|
||||||
curlftpfs = callPackage ../tools/filesystems/curlftpfs { };
|
curlftpfs = callPackage ../tools/filesystems/curlftpfs { };
|
||||||
|
Loading…
x
Reference in New Issue
Block a user