!QCCCSJHEsTIfozrZxz:nixos.org

Nix + Go

234 Members
Go packaging for and with Nixpkgs. | Be excellent to each other.49 Servers

You have reached the beginning of time (for this room).


SenderMessageTime
5 Jan 2024
@qbit:tapenet.org@qbit:tapenet.org * rev should be `rev = "v${version}"` 15:39:42
@qbit:tapenet.org@qbit:tapenet.org name should be pname 15:40:03
@faust403:matrix.orgVladislav VasilevLike that ? It's v2 in commits15:41:29
@faust403:matrix.orgVladislav Vasilevimage.png
Download image.png
15:41:32
@faust403:matrix.orgVladislav VasilevAh, I got it15:44:53
@faust403:matrix.orgVladislav VasilevOKay15:44:55
@faust403:matrix.orgVladislav Vasilev

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.orgVladislav VasilevBut error is still the same15:45:33
@faust403:matrix.orgVladislav VasilevRPATH of binary /nix/store/v5c6pldfn9wfn4k2q4ap07z8369fzap5-neutrond-2.0.0/bin/neutrond contains a forbidden reference to /build/ I think we should change relative path15:47:02
@qbit:tapenet.org@qbit:tapenet.org

what if you add:

  ldflags = [ "-w -s" ];
16:07:19

Show newer messages


Back to Room ListRoom Version: 9