about summary refs log tree commit diff
diff options
context:
space:
mode:
authorAnthony Roussel <anthony@roussel.dev>2024-03-29 23:47:01 +0100
committerAnthony Roussel <anthony@roussel.dev>2024-06-13 10:35:41 +0200
commite6cb8bef457f52e2bcc124fa0c23b7be13586ed4 (patch)
treef00d76279b727e8c89c85850fca5e31620e2ec65
parentbc7d0c3ed19d226b6d2cb6d3ee5bca504aa208e9 (diff)
downloadnixlib-e6cb8bef457f52e2bcc124fa0c23b7be13586ed4.tar
nixlib-e6cb8bef457f52e2bcc124fa0c23b7be13586ed4.tar.gz
nixlib-e6cb8bef457f52e2bcc124fa0c23b7be13586ed4.tar.bz2
nixlib-e6cb8bef457f52e2bcc124fa0c23b7be13586ed4.tar.lz
nixlib-e6cb8bef457f52e2bcc124fa0c23b7be13586ed4.tar.xz
nixlib-e6cb8bef457f52e2bcc124fa0c23b7be13586ed4.tar.zst
nixlib-e6cb8bef457f52e2bcc124fa0c23b7be13586ed4.zip
httping: 2.9 -> 3.6
https://github.com/folkertvanheusden/HTTPing/compare/v2.9...v3.6
-rw-r--r--pkgs/tools/networking/httping/default.nix35
1 files changed, 16 insertions, 19 deletions
diff --git a/pkgs/tools/networking/httping/default.nix b/pkgs/tools/networking/httping/default.nix
index c6c2c765c459..4a9647bf4c16 100644
--- a/pkgs/tools/networking/httping/default.nix
+++ b/pkgs/tools/networking/httping/default.nix
@@ -1,7 +1,7 @@
 {
+  cmake,
   fetchFromGitHub,
-  fetchpatch,
-  fftw ? null,
+  fftw,
   gettext,
   lib,
   libintl,
@@ -14,26 +14,17 @@
 
 stdenv.mkDerivation (finalAttrs: {
   pname = "httping";
-  version = "2.9";
+  version = "3.6";
 
   src = fetchFromGitHub {
     owner = "folkertvanheusden";
     repo = "HTTPing";
     rev = "refs/tags/v${finalAttrs.version}";
-    hash = "sha256-aExTXXtW03UKMuMjTMx1k/MUpcRMh1PdSPkDGH+Od70=";
+    hash = "sha256-lDgQC3VzfcLqMOQSaRZ/znMamAAGYq/9C9bHgI4G7B8=";
   };
 
-  patches = [
-    # Pull upstream fix for missing <unistd.h>
-    #   https://github.com/folkertvanheusden/HTTPing/pull/8
-    (fetchpatch {
-      name = "add-unistd.patch";
-      url = "https://github.com/folkertvanheusden/HTTPing/commit/aad3c275686344fe9a235faeac4ee3832f3aa8d5.patch";
-      hash = "sha256-bz3AMQTSfSTwUyf9WbkAFWVmFo06ei+Qd55x+RRDREY=";
-    })
-  ];
-
   nativeBuildInputs = [
+    cmake
     gettext
   ];
 
@@ -44,11 +35,16 @@ stdenv.mkDerivation (finalAttrs: {
     openssl
   ];
 
-  makeFlags = [
-    "DESTDIR=$(out)"
-    "PREFIX="
+  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";
@@ -58,7 +54,8 @@ stdenv.mkDerivation (finalAttrs: {
   };
 
   meta = with lib; {
-    description = "ping with HTTP requests";
+    changelog = "https://github.com/folkertvanheusden/HTTPing/releases/tag/v${finalAttrs.version}";
+    description = "Ping with HTTP requests";
     homepage = "https://vanheusden.com/httping";
     license = licenses.agpl3Only;
     longDescription = ''
@@ -69,6 +66,6 @@ stdenv.mkDerivation (finalAttrs: {
     '';
     mainProgram = "httping";
     maintainers = [ ];
-    platforms = platforms.linux ++ platforms.darwin;
+    platforms = platforms.linux;
   };
 })