diff options
Diffstat (limited to 'pkgs/by-name/ht')
-rw-r--r-- | pkgs/by-name/ht/http-server/package.nix | 2 | ||||
-rw-r--r-- | pkgs/by-name/ht/httpdirfs/package.nix | 2 | ||||
-rw-r--r-- | pkgs/by-name/ht/httpie-desktop/package.nix | 2 | ||||
-rw-r--r-- | pkgs/by-name/ht/httping/package.nix | 71 |
4 files changed, 74 insertions, 3 deletions
diff --git a/pkgs/by-name/ht/http-server/package.nix b/pkgs/by-name/ht/http-server/package.nix index 9a058ac255baf..19e937f242e39 100644 --- a/pkgs/by-name/ht/http-server/package.nix +++ b/pkgs/by-name/ht/http-server/package.nix @@ -29,7 +29,7 @@ buildNpmPackage rec { dontNpmBuild = true; meta = { - description = "A simple zero-configuration command-line http server"; + description = "Simple zero-configuration command-line http server"; homepage = "https://github.com/http-party/http-server"; license = lib.licenses.mit; mainProgram = "http-server"; diff --git a/pkgs/by-name/ht/httpdirfs/package.nix b/pkgs/by-name/ht/httpdirfs/package.nix index 54d16dbfcbb57..99a84769459e1 100644 --- a/pkgs/by-name/ht/httpdirfs/package.nix +++ b/pkgs/by-name/ht/httpdirfs/package.nix @@ -60,7 +60,7 @@ stdenv.mkDerivation (finalAttrs: { meta = { changelog = "https://github.com/fangfufu/httpdirfs/releases/tag/${finalAttrs.version}"; - description = "A FUSE filesystem for HTTP directory listings"; + description = "FUSE filesystem for HTTP directory listings"; homepage = "https://github.com/fangfufu/httpdirfs"; license = lib.licenses.gpl3Only; mainProgram = "httpdirfs"; diff --git a/pkgs/by-name/ht/httpie-desktop/package.nix b/pkgs/by-name/ht/httpie-desktop/package.nix index e8f3dbb1c02d9..d5d3d32198391 100644 --- a/pkgs/by-name/ht/httpie-desktop/package.nix +++ b/pkgs/by-name/ht/httpie-desktop/package.nix @@ -13,7 +13,7 @@ appimageTools.wrapType2 rec { }; meta = with lib; { - description = "Cross-platform API testing client for humans. Painlessly test REST, GraphQL, and HTTP APIs."; + description = "Cross-platform API testing client for humans. Painlessly test REST, GraphQL, and HTTP APIs"; homepage = "https://github.com/httpie/desktop"; license = licenses.unfree; maintainers = with maintainers; [ luftmensch-luftmensch ]; diff --git a/pkgs/by-name/ht/httping/package.nix b/pkgs/by-name/ht/httping/package.nix new file mode 100644 index 0000000000000..85fcc843ef0f7 --- /dev/null +++ b/pkgs/by-name/ht/httping/package.nix @@ -0,0 +1,71 @@ +{ + cmake, + fetchFromGitHub, + fftw, + gettext, + lib, + libintl, + ncurses, + nix-update-script, + openssl, + stdenv, + testers, +}: + +stdenv.mkDerivation (finalAttrs: { + pname = "httping"; + version = "3.6"; + + src = fetchFromGitHub { + owner = "folkertvanheusden"; + repo = "HTTPing"; + rev = "refs/tags/v${finalAttrs.version}"; + hash = "sha256-lDgQC3VzfcLqMOQSaRZ/znMamAAGYq/9C9bHgI4G7B8="; + }; + + nativeBuildInputs = [ + cmake + gettext + ]; + + buildInputs = [ + fftw + libintl + ncurses + openssl + ]; + + cmakeFlags = [ + (lib.cmakeFeature "CMAKE_BUILD_TYPE" "Release") + ]; + + installPhase = '' + runHook preInstall + install -D httping $out/bin/httping + runHook postInstall + ''; + + passthru = { + tests.version = testers.testVersion { + command = "${lib.getExe finalAttrs.finalPackage} --version"; + package = finalAttrs.finalPackage; + }; + updateScript = nix-update-script { }; + }; + + meta = { + changelog = "https://github.com/folkertvanheusden/HTTPing/releases/tag/v${finalAttrs.version}"; + description = "Ping with HTTP requests"; + homepage = "https://vanheusden.com/httping"; + license = lib.licenses.agpl3Only; + longDescription = '' + Give httping an url, and it'll show you how long it takes to connect, + send a request and retrieve the reply (only the headers). Be aware that + the transmission across the network also takes time! So it measures the + latency of the webserver + network. It supports IPv6. + ''; + mainProgram = "httping"; + maintainers = [ lib.maintainers.anthonyroussel ]; + platforms = lib.platforms.linux; + }; +}) |