* [bug#56356] [WIP PATCH] gnu: dedukti: Update to 1.7.
@ 2022-07-02 11:42 Julien Lepiller
2022-07-10 9:55 ` Gabriel Hondet
2022-07-17 18:30 ` Ludovic Courtès
0 siblings, 2 replies; 4+ messages in thread
From: Julien Lepiller @ 2022-07-02 11:42 UTC (permalink / raw)
To: 56356; +Cc: Gabriel Hondet
[-- Attachment #1: Type: text/plain, Size: 1146 bytes --]
Hi Guix and Gabriel,
Gabriel, since you provided the initial patch to add dedukti and the
emacs mode, I thought you might be interested, so I CC'd you. Feel free
to ignore if you've moved to something else :)
Attached is a patch to update dedukti to the latest version, 1.7. The
patch works and dedukti seems to be working, though I don't really know
how to use it, so maybe not :)
The issue is with its dependent emacs-dedukti-mode. It embeds a
reference to the "dkcheck" tool that does not exist in this version of
the package. Instead, you're supposed to call "dk check" (the --help
still mentions dkcheck, so maybe I did something wrong in packaging?)
I noticed that emacs-dedukti-mode is 5 years old and unmaintained
upstream, while there is a dedukti-mode provided in the git repository
of dedukti that is only 2 years old. I don't use emacs and I don't know
how to solve this issue, so I'm not updating the package yet.
I'd appreciate some help, either to find a better substitution pattern
in the current emacs-dedukti-mode package, or to package the one
provided by dedukti, or maybe to figure out another direction I didn't
see :)
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-gnu-dedukti-Update-to-2.7.patch --]
[-- Type: text/x-patch, Size: 2234 bytes --]
From cd89e04ea72c18d59a01baccc9311b5070c845a4 Mon Sep 17 00:00:00 2001
From: Julien Lepiller <julien@lepiller.eu>
Date: Sat, 2 Jul 2022 13:36:08 +0200
Subject: [PATCH] gnu: dedukti: Update to 2.7.
* gnu/packages/ocaml.scm (dedukti): Update to 2.7.
---
gnu/packages/ocaml.scm | 31 ++++++-------------------------
1 file changed, 6 insertions(+), 25 deletions(-)
diff --git a/gnu/packages/ocaml.scm b/gnu/packages/ocaml.scm
index cd8778231e..e3a4bb15ce 100644
--- a/gnu/packages/ocaml.scm
+++ b/gnu/packages/ocaml.scm
@@ -4506,7 +4506,7 @@ (define-public ocaml-tsdl
(define-public dedukti
(package
(name "dedukti")
- (version "2.6.0")
+ (version "2.7")
(home-page "https://deducteam.github.io/")
(source
(origin
@@ -4517,31 +4517,12 @@ (define-public dedukti
(file-name (git-file-name name version))
(sha256
(base32
- "0frl3diff033i4fmq304b8wbsdnc9mvlhmwd7a3zd699ng2lzbxb"))))
- (inputs
- `(("menhir" ,ocaml-menhir)))
- (native-inputs
- (list ocamlbuild))
- (build-system ocaml-build-system)
+ "1dsr3s88kgmcg3najhc29cwfvsxa2plvjws1127fz75kmn15np28"))))
+ (build-system dune-build-system)
(arguments
- `(#:phases
- ,#~(modify-phases %standard-phases
- (delete 'configure)
- (replace 'build
- (lambda _
- (invoke "make")))
- (replace 'check
- (lambda _
- (invoke "make" "tests")))
- (add-before 'install 'set-binpath
- ;; Change binary path in the makefile
- (lambda _
- (substitute* "GNUmakefile"
- (("BINDIR = (.*)$")
- (string-append "BINDIR = " #$output "/bin")))))
- (replace 'install
- (lambda _
- (invoke "make" "install"))))))
+ `(#:test-target "tests"))
+ (inputs (list gmp ocaml-cmdliner ocaml-z3 z3))
+ (native-inputs (list ocaml-menhir))
(synopsis "Proof-checker for the λΠ-calculus modulo theory, an extension of
the λ-calculus")
(description "Dedukti is a proof-checker for the λΠ-calculus modulo
--
2.36.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [bug#56356] [WIP PATCH] gnu: dedukti: Update to 1.7.
2022-07-02 11:42 [bug#56356] [WIP PATCH] gnu: dedukti: Update to 1.7 Julien Lepiller
@ 2022-07-10 9:55 ` Gabriel Hondet
2022-07-17 18:30 ` Ludovic Courtès
1 sibling, 0 replies; 4+ messages in thread
From: Gabriel Hondet @ 2022-07-10 9:55 UTC (permalink / raw)
To: Julien Lepiller; +Cc: 56356
Hi Julien and Guix,
On Sat, Jul 02, 2022 at 01:42:01PM +0200, Julien Lepiller wrote:
> Attached is a patch to update dedukti to the latest version, 1.7. The
> patch works and dedukti seems to be working, though I don't really know
> how to use it, so maybe not :)
Sorry for the late reply, and thanks a lot for the update, the patch
seems perfect.
> The issue is with its dependent emacs-dedukti-mode. It embeds a
> reference to the "dkcheck" tool that does not exist in this version of
> the package. Instead, you're supposed to call "dk check" (the --help
> still mentions dkcheck, so maybe I did something wrong in packaging?)
>
> I noticed that emacs-dedukti-mode is 5 years old and unmaintained
> upstream, while there is a dedukti-mode provided in the git repository
> of dedukti that is only 2 years old. I don't use emacs and I don't know
> how to solve this issue, so I'm not updating the package yet.
>
> I'd appreciate some help, either to find a better substitution pattern
> in the current emacs-dedukti-mode package, or to package the one
> provided by dedukti, or maybe to figure out another direction I didn't
> see :)
Indeed, the emacs-dedukti-mode is deprecated, it would be better to just
remove it from guix recipes.
Cheers,
Gabriel
^ permalink raw reply [flat|nested] 4+ messages in thread
* [bug#56356] [WIP PATCH] gnu: dedukti: Update to 1.7.
2022-07-02 11:42 [bug#56356] [WIP PATCH] gnu: dedukti: Update to 1.7 Julien Lepiller
2022-07-10 9:55 ` Gabriel Hondet
@ 2022-07-17 18:30 ` Ludovic Courtès
2022-11-03 13:07 ` bug#56356: " Julien Lepiller
1 sibling, 1 reply; 4+ messages in thread
From: Ludovic Courtès @ 2022-07-17 18:30 UTC (permalink / raw)
To: Julien Lepiller; +Cc: Gabriel Hondet, 56356
Saluton! :-)
Julien Lepiller <julien@lepiller.eu> skribis:
> From cd89e04ea72c18d59a01baccc9311b5070c845a4 Mon Sep 17 00:00:00 2001
> From: Julien Lepiller <julien@lepiller.eu>
> Date: Sat, 2 Jul 2022 13:36:08 +0200
> Subject: [PATCH] gnu: dedukti: Update to 2.7.
>
> * gnu/packages/ocaml.scm (dedukti): Update to 2.7.
If it works for both of you, I’d say go for it!
Ludo’.
^ permalink raw reply [flat|nested] 4+ messages in thread
* bug#56356: [WIP PATCH] gnu: dedukti: Update to 1.7.
2022-07-17 18:30 ` Ludovic Courtès
@ 2022-11-03 13:07 ` Julien Lepiller
0 siblings, 0 replies; 4+ messages in thread
From: Julien Lepiller @ 2022-11-03 13:07 UTC (permalink / raw)
To: Ludovic Courtès; +Cc: Gabriel Hondet, 56356-done
Pushed to master as e2802132e36ea8157da1c1c06217e4561b6cd79f, thanks!
Le Sun, 17 Jul 2022 20:30:38 +0200,
Ludovic Courtès <ludo@gnu.org> a écrit :
> Saluton! :-)
>
> Julien Lepiller <julien@lepiller.eu> skribis:
>
> > From cd89e04ea72c18d59a01baccc9311b5070c845a4 Mon Sep 17 00:00:00
> > 2001 From: Julien Lepiller <julien@lepiller.eu>
> > Date: Sat, 2 Jul 2022 13:36:08 +0200
> > Subject: [PATCH] gnu: dedukti: Update to 2.7.
> >
> > * gnu/packages/ocaml.scm (dedukti): Update to 2.7.
>
> If it works for both of you, I’d say go for it!
>
> Ludo’.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2022-11-03 13:08 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-07-02 11:42 [bug#56356] [WIP PATCH] gnu: dedukti: Update to 1.7 Julien Lepiller
2022-07-10 9:55 ` Gabriel Hondet
2022-07-17 18:30 ` Ludovic Courtès
2022-11-03 13:07 ` bug#56356: " Julien Lepiller
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.