!QCCCSJHEsTIfozrZxz:nixos.org

Nix + Go

231 Members
Go packaging for and with Nixpkgs. | Be excellent to each other.51 Servers

Load older messages


SenderMessageTime
29 Mar 2023
@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
@qbit:tapenet.org@qbit:tapenet.org hexa: do I just need to add the backport label to this: https://github.com/NixOS/nixpkgs/pull/224713 ? 15:04:47
@hexa:lossy.networkhexa
nix-repl> go.version
"1.19.6"
15:05:20
@hexa:lossy.networkhexathat won't apply15:05:27
@hexa:lossy.networkhexa qbit: ^ 15:06:17
@hexa:lossy.networkhexaalso 1.19 is the primary version of 22.11, so maybe it needs to go through staging? not sure15:08:12
8 Apr 2023
@qbit:tapenet.org@qbit:tapenet.org hexa: would I make it from the nixos-22.11 branch and target staging in the PR? 14:38:59
@qbit:tapenet.org@qbit:tapenet.orgis there a doc anywhere describing the process? 14:39:14

Show newer messages


Back to Room ListRoom Version: 9