I am running hello-go on aarch64-darwin and while I am learning flakes (and nix) with the help of this post, I get this error:
> nix flake init --template templates#go-hello
wrote: /first-steps/hello-go/go.mod
wrote: /first-steps/hello-go/flake.nix
wrote: /first-steps/hello-go/main.go
> nix run
warning: creating lock file '/first-steps/hello-go/flake.lock':
• Added input 'nixpkgs':
'github:NixOS/nixpkgs/eabc38219184cc3e04a974fe31857d8e0eac098d?narHash=sha256-hekabNdTdgR/iLsgce5TGWmfIDZ86qjPhxDg/8TlzhE%3D' (2022-08-02)
error:
… while evaluating the attribute 'packages.aarch64-darwin.go-hello'
at /nix/store/rgv2bk0vc80h1r93267wm5xw61y8vpsm-source/flake.nix:34:11:
33| {
34| go-hello = pkgs.buildGoModule {
| ^
35| pname = "go-hello";
… while calling a functor (an attribute set with a '__functor' attribute)
at /nix/store/rgv2bk0vc80h1r93267wm5xw61y8vpsm-source/flake.nix:34:22:
33| {
34| go-hello = pkgs.buildGoModule {
| ^
35| pname = "go-hello";
(stack trace truncated; use '--show-trace' to show the full, detailed trace)
error: function 'anonymous lambda' called without required argument 'vendorSha256'
at /nix/store/9ks8076lanzwp09dmwy5r3racihsc1ip-source/pkgs/development/go-modules/generic/default.nix:3:1:
2|
3| { name ? "${args'.pname}-${args'.version}"
| ^
4| , src
> nix --version
nix (Nix) 2.24.5
I looked up in the code I can't quickly find the reason, the vendorSha256 is hardcoded there and there's a clear explanation why however I don't get why it broke.
I am running
hello-goonaarch64-darwinand while I am learning flakes (and nix) with the help of this post, I get this error:I looked up in the code I can't quickly find the reason, the
vendorSha256is hardcoded there and there's a clear explanation why however I don't get why it broke.