Re: Guix build side - including modules (guix hash), (guix gcrypt): How to provide shared library?

2017-01-02 Thread Ludovic Courtès
David Craven skribis: >> Also, why is sha256 used via FFI via an external library? It's not exactly >> difficult to implement in Guile :P > > I'm not sure we want to write our own crypto primitives... And it's > not quite as trivial, I don't know or care what a Newton-Raphson >

Re: Guix build side - including modules (guix hash), (guix gcrypt): How to provide shared library?

2017-01-02 Thread David Craven
I find it useful to look at the generated drv (/gnu/store/asr76labrpqq0kcg64yni0sqsxj0d30y-rust-gtk-0.1.1.drv) and build script (/gnu/store/hash-rust-gtk-0.1.1.builder) and see if those make sense. Sounds like a hard problem dough. Good luck! :) I notice you haven't rebased yet, I added a couple

Re: Guix build side - including modules (guix hash), (guix gcrypt): How to provide shared library?

2017-01-02 Thread Danny Milosavljevic
Hi David, On Mon, 2 Jan 2017 11:06:27 +0100 David Craven wrote: > > how can I use (guix hash) on the build side? It requires the libgcrypt > > shared library and that's not available on the build side... > > Depends. For a one off package I'd add it to native-inputs.

Re: Guix build side - including modules (guix hash), (guix gcrypt): How to provide shared library?

2017-01-02 Thread David Craven
> how can I use (guix hash) on the build side? It requires the libgcrypt shared > library and that's not available on the build side... Depends. For a one off package I'd add it to native-inputs. Otherwise you can create a new build-system that wraps the gnu-build-system and extend the

Guix build side - including modules (guix hash), (guix gcrypt): How to provide shared library?

2017-01-01 Thread Danny Milosavljevic
Hi, how can I use (guix hash) on the build side? It requires the libgcrypt shared library and that's not available on the build side...