guix-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] gnu: Add httpstat.


From: Marius Bakke
Subject: Re: [PATCH] gnu: Add httpstat.
Date: Sat, 24 Dec 2016 15:24:25 +0100
User-agent: Notmuch/0.23.4 (https://notmuchmail.org) Emacs/25.1.1 (x86_64-unknown-linux-gnu)

Stefan Reichör <address@hidden> writes:

> From 06958884c4a29f43b9ade58a950b95bf9046d9f4 Mon Sep 17 00:00:00 2001
> From: Stefan Reichoer <address@hidden>
> Date: Fri, 23 Dec 2016 22:06:15 +0100
> Subject: [PATCH] gnu: Add httpstat.
>
> * gnu/packages/networking.scm (httpstat): New variable.
> ---
>  gnu/packages/networking.scm | 21 ++++++++++++++++++++-
>  1 file changed, 20 insertions(+), 1 deletion(-)

Thanks for this patch! Since it has a hard dependency on curl to
function, I think we should patch it with curl as input so that the user
don't have to install curl separately. Can you try that?

Typically this involves adding a substitution to the code that invokes
`curl` and replacing it with '(string-append (assoc-ref inputs "curl")
"/bin/curl")'.

TIA!

>
> diff --git a/gnu/packages/networking.scm b/gnu/packages/networking.scm
> index 2a5ff09..3c100c6 100644
> --- a/gnu/packages/networking.scm
> +++ b/gnu/packages/networking.scm
> @@ -2,7 +2,7 @@
>  ;;; Copyright © 2014 Ludovic Courtès <address@hidden>
>  ;;; Copyright © 2015, 2016 Ricardo Wurmus <address@hidden>
>  ;;; Copyright © 2015 Mark H Weaver <address@hidden>
> -;;; Copyright © 2015 Stefan Reichör <address@hidden>
> +;;; Copyright © 2015, 2016 Stefan Reichör <address@hidden>
>  ;;; Copyright © 2016 Raimon Grau <address@hidden>
>  ;;; Copyright © 2016 Tobias Geerinckx-Rice <address@hidden>
>  ;;; Copyright © 2016 John Darrington <address@hidden>
> @@ -34,6 +34,7 @@
>    #:use-module (guix download)
>    #:use-module (guix build-system glib-or-gtk)
>    #:use-module (guix build-system gnu)
> +  #:use-module (guix build-system python)
>    #:use-module (gnu packages)
>    #:use-module (gnu packages admin)
>    #:use-module (gnu packages adns)
> @@ -549,6 +550,24 @@ by firewalls or when you want to monitor the response 
> time of the actual web
>  application stack itself.")
>      (license license:gpl2)))        ; with permission to link with OpenSSL
>  
> +(define-public httpstat
> +  (package
> +    (name "httpstat")
> +    (version "1.2.1")
> +    (source
> +      (origin
> +        (method url-fetch)
> +        (uri (pypi-uri "httpstat" version))
> +        (sha256
> +          (base32
> +            "1chw2nk56vaq87aba012a270k9na06hfx1pfbsrc3jfvlc2kb9hb"))))
> +    (build-system python-build-system)
> +    (home-page "https://github.com/reorx/httpstat";)
> +    (synopsis "visualize curl statistics")
> +    (description
> +     "httpstat visualizes curl statistics in a way of beauty and clarity.")
> +    (license license:expat)))
> +
>  (define-public bwm-ng
>    (package
>      (name "bwm-ng")
> -- 
> 2.7.4

Attachment: signature.asc
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]