guix-patches
[Top][All Lists]
Advanced

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

[bug#51351] [PATCH] gnu: pplacer: Fix build.


From: Efraim Flashner
Subject: [bug#51351] [PATCH] gnu: pplacer: Fix build.
Date: Mon, 15 Nov 2021 15:42:37 +0200

On Sat, Oct 23, 2021 at 04:30:08PM +0200, Julien Lepiller wrote:
> From e7413cc1b1759ad7049b044d3e6743f572ced836 Mon Sep 17 00:00:00 2001
> Message-Id: 
> <e7413cc1b1759ad7049b044d3e6743f572ced836.1634999221.git.julien@lepiller.eu>
> In-Reply-To: 
> <5a85894ee405d2fbe909b61fb3817aa44d6a08df.1634999221.git.julien@lepiller.eu>
> References: 
> <5a85894ee405d2fbe909b61fb3817aa44d6a08df.1634999221.git.julien@lepiller.eu>
> From: Julien Lepiller <julien@lepiller.eu>
> Date: Sat, 23 Oct 2021 15:27:56 +0200
> Subject: [PATCH 4/6] gnu: Add ocaml4.07-bisect-ppx.
> 
> * gnu/packages/ocaml.scm (ocaml4.07-bisect-ppx): New variable.
> ---
>  gnu/packages/ocaml.scm | 30 +++++++++++++++++++++++++++++-
>  1 file changed, 29 insertions(+), 1 deletion(-)
> 
> diff --git a/gnu/packages/ocaml.scm b/gnu/packages/ocaml.scm
> index 43011a0aab..87429b92ac 100644
> --- a/gnu/packages/ocaml.scm
> +++ b/gnu/packages/ocaml.scm
> @@ -6625,7 +6625,8 @@ (define-public ocaml-bisect-ppx
>      (arguments
>       ;; Tests require ocamlformat which would lead to circular dependencies
>       '(#:tests? #f))
> -    (properties '((upstream-name . "bisect_ppx")))
> +    (properties `((upstream-name . "bisect_ppx")
> +                  (ocaml4.07-variant . ,(delay ocaml4.07-bisect-ppx))))
>      (home-page "https://github.com/aantron/bisect_ppx";)
>      (synopsis "Code coverage for OCaml")
>      (description "Bisect_ppx helps you test thoroughly.  It is a small
> @@ -6637,6 +6638,33 @@ (define-public ocaml-bisect-ppx
>  then run the Bisect_ppx report tool on the generated visitation files.")
>      (license license:mpl2.0)))
>  
> +(define-public ocaml4.07-bisect-ppx
> +  (package-with-ocaml4.07
> +    (package
> +      (inherit ocaml-bisect-ppx)

I tried 2.4.1.

> +      (version "2.4.0")
> +      (source
> +       (origin
> +         (method git-fetch)
> +         (uri (git-reference
> +               (url "https://github.com/aantron/bisect_ppx";)
> +               (commit version)))
> +         (file-name (git-file-name "ocaml-bisect-ppx" version))
> +         (sha256
> +          (base32
> +           "1njs8xc108rrpx5am5zhhcn6vjva7rsphm8034qp5lgyvnhfgh7q"))))
> +      (propagated-inputs

With 2.4.1 the only change I had to make was to add
ocaaml-ppx-tools-versioned. And of course the properties change.

> +       `(("ocaml-migrate-parsetree" ,ocaml-migrate-parsetree)
> +         ("ocaml-ppx-tools-versioned" ,ocaml-ppx-tools-versioned)
> +         ,@(package-propagated-inputs ocaml-bisect-ppx)))
> +      (native-inputs
> +       `(("ocaml-ounit2" ,ocaml-ounit2)))
> +      (arguments
> +       `(#:test-target "."
> +         ;; tests require git and network
> +         #:tests? #f))
> +      (properties '()))))
> +
>  (define-public ocaml-odoc
>    (package
>      (name "ocaml-odoc")
> -- 
> 2.33.0
> 


-- 
Efraim Flashner   <efraim@flashner.co.il>   רנשלפ םירפא
GPG key = A28B F40C 3E55 1372 662D  14F7 41AA E7DC CA3D 8351
Confidentiality cannot be guaranteed on emails sent or received unencrypted

Attachment: signature.asc
Description: PGP signature


reply via email to

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