!QCCCSJHEsTIfozrZxz:nixos.org

Nix + Go

227 Members
Go packaging for and with Nixpkgs. | Be excellent to each other.47 Servers

Load older messages


SenderMessageTime
29 Mar 2023
@qbit:tapenet.org@qbit:tapenet.org(Doesn’t seem like it from an initial glance :D)01:46:49
@qbit:tapenet.org@qbit:tapenet.orgIf it doesn’t print the hash, it would be helpful if you could post what you currently have02:00:37
@peddie:matrix.org@peddie:matrix.orgusing "" doesn't seem to change anything. no CGO as far as I can tell02:06:25
@peddie:matrix.org@peddie:matrix.org

here is the flake.nix:

 {
  description = "Go interface to Sungrow solar inverters";

  inputs = {
    nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
    flake-utils.url = "github:numtide/flake-utils";
    go-sungrow-repo = {
      url = "github:MickMake/GoSungrow";
      flake = false;
    };
  };

  outputs = { self, nixpkgs, ... }@inputs:
    inputs.flake-utils.lib.eachDefaultSystem (system:
      let
        pkgs = import nixpkgs { inherit system; };
        python = pkgs.python311Packages;

        go-sungrow = pkgs.buildGoModule {
          pname = "GoSungrow";
          version = "3.0.4";
          src = inputs.go-sungrow-repo;
          vendorSha256 = ""; # pkgs.lib.fakeSha256;

          meta = with pkgs.lib; {
            description =
              "GoLang implementation to access the iSolarButt API updated by SunGrow inverters";
            homepage = "https://github.com/MickMake/GoSungrow";
            license = licenses.gpl2;
          };
        };
      in {
        packages.default = go-sungrow;
        packages.tod0 = go-sungrow;
      });
}
02:07:02
@peddie:matrix.org@peddie:matrix.org *

here is the flake.nix:

 {
  description = "Go interface to Sungrow solar inverters";

  inputs = {
    nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
    flake-utils.url = "github:numtide/flake-utils";
    go-sungrow-repo = {
      url = "github:MickMake/GoSungrow";
      flake = false;
    };
  };

  outputs = { self, nixpkgs, ... }@inputs:
    inputs.flake-utils.lib.eachDefaultSystem (system:
      let
        pkgs = import nixpkgs { inherit system; };

        go-sungrow = pkgs.buildGoModule {
          pname = "GoSungrow";
          version = "3.0.4";
          src = inputs.go-sungrow-repo;
          vendorSha256 = ""; # pkgs.lib.fakeSha256;

          meta = with pkgs.lib; {
            description =
              "GoLang implementation to access the iSolarButt API updated by SunGrow inverters";
            homepage = "https://github.com/MickMake/GoSungrow";
            license = licenses.gpl2;
          };
        };
      in {
        packages.default = go-sungrow;
        packages.tod0 = go-sungrow;
      });
}
02:09:11
@qbit:tapenet.org@qbit:tapenet.orgisolarbutt, lel02:10:40
@peddie:matrix.org@peddie:matrix.orgoops, copy-pasted from a browser with a fun plugin ;)02:11:35
@qbit:tapenet.org@qbit:tapenet.org:D02:11:51
@qbit:tapenet.org@qbit:tapenet.org seems to build with proxyVendor = true; 02:14:56
@qbit:tapenet.org@qbit:tapenet.orgusually you only need that when the thing is building with cgo, .. maybe there is a dep that needs it02:15:31
@qbit:tapenet.org@qbit:tapenet.orgoh, nope - that failed too02:15:45
@qbit:tapenet.org@qbit:tapenet.orgoh, failed test02:15:54
@qbit:tapenet.org@qbit:tapenet.org
{
  description = "Go interface to Sungrow solar inverters";

  inputs = {
    nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
    flake-utils.url = "github:numtide/flake-utils";
    go-sungrow-repo = {
      url = "github:MickMake/GoSungrow";
      flake = false;
    };
  };

  outputs = { nixpkgs, ... }@inputs:
    inputs.flake-utils.lib.eachDefaultSystem (system:
      let
        pkgs = import nixpkgs { inherit system; };

        go-sungrow = pkgs.buildGoModule {
          pname = "GoSungrow";
          version = "3.0.4";
          src = inputs.go-sungrow-repo;
          vendorSha256 = "sha256-fIlxHJfz7Sm7SHZFVkwgfuhiB1gBLcMW0+IpQ0cgbiM=";
          proxyVendor = true;

          doCheck = false;

          meta = with pkgs.lib; {
            description =
              "GoLang implementation to access the iSolarButt API updated by SunGrow inverters";
            homepage = "https://github.com/MickMake/GoSungrow";
            license = licenses.gpl2;
          };
        };
      in {
        packages.default = go-sungrow;
        packages.tod0 = go-sungrow;
      });
}
02:19:02
@qbit:tapenet.org@qbit:tapenet.orgthat builds for me :D02:19:07
@peddie:matrix.org@peddie:matrix.org thanks qbit ! how did you determine the SHA sum? 03:20:13
@qbit:tapenet.org@qbit:tapenet.orgSet it to “” and ram “nix build”03:20:49
@qbit:tapenet.org@qbit:tapenet.orgIt will error out with the calculated hash03:21:18
@peddie:matrix.org@peddie:matrix.orgoh, great, I see03:23:27
@peddie:matrix.org@peddie:matrix.org somehow from the nixpkgs manual I had misunderstood that proxyVendor was to be used in lieu of vendorHash. now I get it 03:23:44
@peddie:matrix.org@peddie:matrix.org seems to be running great now. much appreciated, qbit, cheers, thanks again 03:25:18
30 Mar 2023
@marcusramberg:matrix.orgMarcus joined the room.18:40:46
2 Apr 2023
@peddie:matrix.org@peddie:matrix.org left the room.12:24:16
4 Apr 2023
@arnoldanderson:matrix.org[a4]nd[e3]r[s5][o0]n changed their profile picture.10:00:36
7 Apr 2023
@hexa:lossy.networkhexahey! anyone taking care of 1.19.8 for 22.11?14:22:26
@hexa:lossy.networkhexahttps://groups.google.com/g/golang-announce/c/Xdv6JL9ENs814:22:27
@hexa:lossy.networkhexawe're still on 1.19.6 there14:22:34
@hexa:lossy.networkhexa cc qbit 14:22:39
@qbit:tapenet.org@qbit:tapenet.orgNot yet that I have seen14:32:36
@qbit:tapenet.org@qbit:tapenet.orgI can make a PR later today14:32:48
@hexa:lossy.networkhexaplease14:39:07

Show newer messages


Back to Room ListRoom Version: 9