commit 7c0dee47954822f0cd5c19689648c435968dfc65
parent b80a5f4bbed59d8dbda558391a2ac54c3b1eba2b
Author: Nikolay Korotkiy <sikmir@gmail.com>
Date: Thu, 24 Dec 2020 09:54:55 +0300
Add hurl
Diffstat:
2 files changed, 27 insertions(+), 0 deletions(-)
diff --git a/pkgs/default.nix b/pkgs/default.nix
@@ -170,6 +170,7 @@ lib.makeScope newScope (
gt-bash-client = callPackage ./tools/dict/gt-bash-client { };
gt4gd = callPackage ./tools/dict/gt4gd { };
gurl = callPackage ./tools/networking/gurl { };
+ hurl = callPackage ./tools/networking/hurl { };
imgdecode = callPackage ./tools/geo/imgdecode { };
ish = callPackage ./tools/networking/ish { };
lazyscraper = callPackage ./tools/text/lazyscraper { };
diff --git a/pkgs/tools/networking/hurl/default.nix b/pkgs/tools/networking/hurl/default.nix
@@ -0,0 +1,26 @@
+{ stdenv, fetchgit, libressl, libbsd }:
+
+stdenv.mkDerivation rec {
+ pname = "hurl";
+ version = "0.4";
+
+ src = fetchgit {
+ url = "git://git.codemadness.org/hurl";
+ rev = version;
+ sha256 = "09a7l9dhygkvyc6v1jw960rmdvgpzp440f6n94jj71jlqi3k43hq";
+ };
+
+ buildInputs = [ libressl libbsd ];
+
+ NIX_LDFLAGS = "-lbsd";
+
+ makeFlags = [ "PREFIX=$(out)" ];
+
+ meta = with stdenv.lib; {
+ description = "Relatively simple HTTP, HTTPS and Gopher client/file grabber";
+ homepage = "https://git.codemadness.org/hurl/file/README.html";
+ license = licenses.isc;
+ maintainers = [ maintainers.sikmir ];
+ platforms = platforms.linux;
+ };
+}