Le 04/20, Christopher Baines a écrit : > Tanguy Le Carrour <tan...@bioneland.org> writes: > > However, in the package definition [2], 3 Go packages are listed as > > "inputs" whereas they should be listed as "native-inputs". Is this > > correct? > That sounds right to me, although there have been issues with binaries > generated with Go […] > There's also an important aspect of cross-compilation to these fields, > which you can read about here: > > https://www.gnu.org/software/guix/manual/en/html_node/package-Reference.html
Thanks for the link. I do realize that, so close to the release of Guix System 1.0, this can sound trivial, but I find it a little annoying to have `guix size direnv` reporting 594 MiB when the actual binary size is 2.9M. :-( > > As I said, I'm still learning. But I've tried, and here is what I've > > done so far […] > > I tried changing the inputs to native-inputs, and the package built for > me. Could you share the exact changes you made? I haven't done much: --- a/gnu/packages/shellutils.scm +++ b/gnu/packages/shellutils.scm @@ -129,12 +129,11 @@ are already there.") ;; Help the build scripts find the Go language dependencies. (add-before 'unpack 'setup-go-environment (assoc-ref go:%standard-phases 'setup-go-environment))))) - (inputs - `(("go" ,go) - ("go-github-com-burntsushi-toml" ,go-github-com-burntsushi-toml) - ("go-github-com-direnv-go-dotenv" ,go-github-com-direnv-go-dotenv))) (native-inputs - `(("which" ,which))) + `(("go" ,go) + ("go-github-com-burntsushi-toml" ,go-github-com-burntsushi-toml) + ("go-github-com-direnv-go-dotenv" ,go-github-com-direnv-go-dotenv) + ("which" ,which))) (home-page "https://direnv.net/") (synopsis "Environment switcher for the shell") (description Thanks again for your time! -- Tanguy