!QCCCSJHEsTIfozrZxz:nixos.org

Nix + Go

130 Members
Go packaging for and with Nixpkgs. | Be excellent to each other.33 Servers

Load older messages


SenderMessageTime
5 Jan 2024
@qbit:tapenet.orgqbityou will need it for adding some -X flags too16:07:30
@qbit:tapenet.orgqbithttps://github.com/neutron-org/neutron/blob/main/Makefile#L66-L7016:07:37
@faust403:matrix.orgVladislav VasilevRedacted or Malformed Event16:15:03
@faust403:matrix.orgVladislav VasilevRedacted or Malformed Event16:15:05
@faust403:matrix.orgVladislav 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
@faust403:matrix.orgVladislav 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.orgqbit if it's using cgo stuff you will need to set proxyVendor = true; 16:16:14
@qbit:tapenet.orgqbit(i don't think it is - bu tthe ref to gcc in the BuildTags made me think of that :P16:17:20
@faust403:matrix.orgVladislav VasilevI think it was wrong :DDD16:17:50
@faust403:matrix.orgVladislav Vasilevimage.png
Download image.png
16:18:03
@faust403:matrix.orgVladislav VasilevCan it be a problem with stdenv?16:21:20
@faust403:matrix.orgVladislav Vasilevimage.png
Download image.png
16:21:24
@qbit:tapenet.orgqbityou can remove the ref to stdenv - you aren't using it 16:24:18
@faust403:matrix.orgVladislav Vasilevstill same error16:27:16
@faust403:matrix.orgVladislav VasilevI have no any idea why. Only one - I have damaged stdenv-linux in store16:27:43
@qbit:tapenet.orgqbitsec..16:28:50
@faust403:matrix.orgVladislav VasilevIs it working on your station ?16:28:58
@faust403:matrix.orgVladislav 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.orgqbitit seems to be some wasm thing16:39:04
@qbit:tapenet.orgqbit \o/ : /nix/store/ww1inj006h7q79li8wd0mlnz93zj60dv-neutrond-2.0.0 16:53:37
@qbit:tapenet.orgqbithad to disable cgo and use -trimpath16:53:48
@qbit:tapenet.orgqbit Vladislav Vasilev: http://sprunge.us/Pt0OZc 16:54:09
@faust403:matrix.orgVladislav VasilevOne moment17:04:09
@faust403:matrix.orgVladislav VasilevAnd previously you got same error ?17:04:26
@faust403:matrix.orgVladislav VasilevWith my default.ni17:04:32
@faust403:matrix.orgVladislav Vasilev * With my default.nix17:04:38
@qbit:tapenet.orgqbitif you remove the cgo and trimpath stuff it will hit the issue with the embedded /build17:04:54
@faust403:matrix.orgVladislav VasilevOh, thank you 17:05:50
@faust403:matrix.orgVladislav VasilevIt works17:05:51
@faust403:matrix.orgVladislav VasilevBut why? I removed gcc17:06:01

There are no newer messages yet.


Back to Room ListRoom Version: 9