5 Jan 2024 |
@qbit:tapenet.org | you will need it for adding some -X flags too | 16:07:30 |
@qbit:tapenet.org | https://github.com/neutron-org/neutron/blob/main/Makefile#L66-L70 | 16:07:37 |
Vladislav Vasilev | Redacted or Malformed Event | 16:15:03 |
Vladislav Vasilev | Redacted or Malformed Event | 16:15:05 |
Vladislav Vasilev | { fetchFromGitHub
, stdenv
, pkgs
, lib
}: pkgs.buildGoModule rec {
pname = "neutrond";
version = "2.0.0";
commit = "e605ed3db4381994ee8185ba4a0ff0877d34e67f";
src = (fetchFromGitHub {
owner = "neutron-org";
repo = "neutron";
rev = "v${version}";
sha256 = "sha256-NuoOlrciBeL2f/A7wlQBqYlYJhSYucXRhLgxdasfyhI=";
});
vendorHash = "sha256-uLInKbuL886cfXCyQvIDZJHUC8AK9fR39yNBHDO+Qzc=";
# vendorSha256 = 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
];
ldflags = [
"-w -s"
"-X github.com/cosmos/cosmos-sdk/version.Name=neutron"
"-X github.com/cosmos/cosmos-sdk/version.AppName=neutrond"
"-X github.com/cosmos/cosmos-sdk/version.Version=${version}"
"-X github.com/cosmos/cosmos-sdk/version.Commit=${commit}"
"-X github.com/cosmos/cosmos-sdk/version.BuildTags=gcc,netgo"
];
}
| 16:15:18 |
Vladislav Vasilev | * Trying this now
{ fetchFromGitHub
, stdenv
, pkgs
, lib
}: pkgs.buildGoModule rec {
pname = "neutrond";
version = "2.0.0";
commit = "e605ed3db4381994ee8185ba4a0ff0877d34e67f";
src = (fetchFromGitHub {
owner = "neutron-org";
repo = "neutron";
rev = "v${version}";
sha256 = "sha256-NuoOlrciBeL2f/A7wlQBqYlYJhSYucXRhLgxdasfyhI=";
});
vendorHash = "sha256-uLInKbuL886cfXCyQvIDZJHUC8AK9fR39yNBHDO+Qzc=";
# vendorSha256 = 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
];
ldflags = [
"-w -s"
"-X github.com/cosmos/cosmos-sdk/version.Name=neutron"
"-X github.com/cosmos/cosmos-sdk/version.AppName=neutrond"
"-X github.com/cosmos/cosmos-sdk/version.Version=${version}"
"-X github.com/cosmos/cosmos-sdk/version.Commit=${commit}"
"-X github.com/cosmos/cosmos-sdk/version.BuildTags=gcc,netgo"
];
}
| 16:15:48 |
@qbit:tapenet.org | if it's using cgo stuff you will need to set proxyVendor = true; | 16:16:14 |
@qbit:tapenet.org | (i don't think it is - bu tthe ref to gcc in the BuildTags made me think of that :P | 16:17:20 |
Vladislav Vasilev | I think it was wrong :DDD | 16:17:50 |
Vladislav Vasilev |  Download image.png | 16:18:03 |
Vladislav Vasilev | Can it be a problem with stdenv? | 16:21:20 |
Vladislav Vasilev |  Download image.png | 16:21:24 |
@qbit:tapenet.org | you can remove the ref to stdenv - you aren't using it | 16:24:18 |
Vladislav Vasilev | still same error | 16:27:16 |
Vladislav Vasilev | I have no any idea why. Only one - I have damaged stdenv-linux in store | 16:27:43 |
@qbit:tapenet.org | sec.. | 16:28:50 |
Vladislav Vasilev | Is it working on your station ? | 16:28:58 |
Vladislav Vasilev | { fetchFromGitHub
, pkgs
, lib
}: pkgs.buildGoModule rec {
pname = "neutrond";
version = "2.0.0";
commit = "e605ed3db4381994ee8185ba4a0ff0877d34e67f";
src = (fetchFromGitHub {
owner = "neutron-org";
repo = "neutron";
rev = "v${version}";
sha256 = "sha256-NuoOlrciBeL2f/A7wlQBqYlYJhSYucXRhLgxdasfyhI=";
});
vendorHash = "sha256-uLInKbuL886cfXCyQvIDZJHUC8AK9fR39yNBHDO+Qzc=";
# vendorSha256 = 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
];
ldflags = [
"-w -s"
"-X github.com/cosmos/cosmos-sdk/version.Name=neutron"
"-X github.com/cosmos/cosmos-sdk/version.AppName=neutrond"
"-X github.com/cosmos/cosmos-sdk/version.Version=${version}"
"-X github.com/cosmos/cosmos-sdk/version.Commit=${commit}"
"-X github.com/cosmos/cosmos-sdk/version.BuildTags=netgo,ledger"
];
}
| 16:29:01 |
@qbit:tapenet.org | it seems to be some wasm thing | 16:39:04 |
@qbit:tapenet.org | \o/ : /nix/store/ww1inj006h7q79li8wd0mlnz93zj60dv-neutrond-2.0.0 | 16:53:37 |
@qbit:tapenet.org | had to disable cgo and use -trimpath | 16:53:48 |
@qbit:tapenet.org | Vladislav Vasilev: http://sprunge.us/Pt0OZc | 16:54:09 |
Vladislav Vasilev | One moment | 17:04:09 |
Vladislav Vasilev | And previously you got same error ? | 17:04:26 |
Vladislav Vasilev | With my default.ni | 17:04:32 |
Vladislav Vasilev | * With my default.nix | 17:04:38 |
@qbit:tapenet.org | if you remove the cgo and trimpath stuff it will hit the issue with the embedded /build | 17:04:54 |
Vladislav Vasilev | Oh, thank you | 17:05:50 |
Vladislav Vasilev | It works | 17:05:51 |
Vladislav Vasilev | But why? I removed gcc | 17:06:01 |