summary refs log tree commit diff
path: root/pkgs/tools/networking/curl-unix-socket
diff options
context:
space:
mode:
authorJaka Hudoklin <jakahudoklin@gmail.com>2014-09-04 12:08:34 +0200
committerJaka Hudoklin <jakahudoklin@gmail.com>2014-09-04 12:08:59 +0200
commit3ccd8af29d33052a3377f7ff5fe6138fe0512c2f (patch)
tree2d8b77928a14c1954ba8e7dacbba2199ae69199c /pkgs/tools/networking/curl-unix-socket
parent2ba523df244d9a3eefec9e2303080f93108254fe (diff)
downloadnixlib-3ccd8af29d33052a3377f7ff5fe6138fe0512c2f.tar
nixlib-3ccd8af29d33052a3377f7ff5fe6138fe0512c2f.tar.gz
nixlib-3ccd8af29d33052a3377f7ff5fe6138fe0512c2f.tar.bz2
nixlib-3ccd8af29d33052a3377f7ff5fe6138fe0512c2f.tar.lz
nixlib-3ccd8af29d33052a3377f7ff5fe6138fe0512c2f.tar.xz
nixlib-3ccd8af29d33052a3377f7ff5fe6138fe0512c2f.tar.zst
nixlib-3ccd8af29d33052a3377f7ff5fe6138fe0512c2f.zip
Add curl-unix-socket, Run HTTP requests over UNIX socket
Diffstat (limited to 'pkgs/tools/networking/curl-unix-socket')
-rw-r--r--pkgs/tools/networking/curl-unix-socket/default.nix24
1 files changed, 24 insertions, 0 deletions
diff --git a/pkgs/tools/networking/curl-unix-socket/default.nix b/pkgs/tools/networking/curl-unix-socket/default.nix
new file mode 100644
index 000000000000..88d75ba570e0
--- /dev/null
+++ b/pkgs/tools/networking/curl-unix-socket/default.nix
@@ -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;
+  };
+}