| 5 Jan 2024 |
@faust403:matrix.org | Now it's this
{ fetchFromGitHub
, stdenv
, pkgs
, lib
}: pkgs.buildGoModule rec {
pname = "neutrond";
version = "2.0.0";
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;
};
}
| 15:45:03 |
@faust403:matrix.org | But error is still the same | 15:45:33 |
@faust403:matrix.org | RPATH of binary /nix/store/v5c6pldfn9wfn4k2q4ap07z8369fzap5-neutrond-2.0.0/bin/neutrond contains a forbidden reference to /build/
I think we should change relative path | 15:47:02 |
@qbit:tapenet.org | what if you add:
ldflags = [ "-w -s" ];
| 16:07:19 |
@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 |
@faust403:matrix.org | Redacted or Malformed Event | 16:15:03 |
@faust403:matrix.org | Redacted or Malformed Event | 16:15:05 |
@faust403:matrix.org | { 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 |
@faust403:matrix.org | * 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 |