| Probably, you can quickly help me, because I spent a lot of time with that
I have this default.nix config:
{ stdenv
, pkgs
, lib
}: pkgs.buildGoModule rec {
name = "neutrond";
version = "v2.0.0";
src = (fetchTarball {
url = "https://github.com/neutron-org/neutron/archive/refs/tags/v2.0.0.tar.gz";
sha256 = "sha256:04na3ympacdqhk8wbfcq2hk5i2d905ac4fzhgzvf4192nyb0xsin";
});
vendorHash = "sha256-uLInKbuL886cfXCyQvIDZJHUC8AK9fR39yNBHDO+Qzc=";
# vendorHash = lib.fakeSha256;
doCheck = false;
meta = with lib; {
description = "Neutron node";
longDescription = ''
Neutron node to interact with neutron blockchain
'';
homepage = "https://github.com/neutron-org/neutron";
license = licenses.asl20; # Apache license
maintainers = with maintainers; [
pr0n00gler
foxpy
];
platforms = platforms.all;
};
nativeBuildInputs = with pkgs; [
patchelf
git
which
gnumake
];
installPhase = ''
mkdir -p $out/bin
go build -mod=readonly -o $out/bin/neutrond ./cmd/neutrond
'';
}
So, repo https://github.com/neutron-org/neutron/ have a go.mod, which have listed go modules to prefetch. All that stuff we need to build cmd/neutrond dir. But, inside of main.go here we have module that we should fetch again. So, I have troubles with that "post-fetch" during building
|