| 29 Mar 2023 |
@qbit:tapenet.org | (Doesn’t seem like it from an initial glance :D) | 01:46:49 |
@qbit:tapenet.org | If it doesn’t print the hash, it would be helpful if you could post what you currently have | 02:00:37 |
@peddie:matrix.org | using "" doesn't seem to change anything. no CGO as far as I can tell | 02:06:25 |
@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 | * 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 | isolarbutt, lel | 02:10:40 |
@peddie:matrix.org | oops, copy-pasted from a browser with a fun plugin ;) | 02:11:35 |
@qbit:tapenet.org | :D | 02:11:51 |
@qbit:tapenet.org | seems to build with proxyVendor = true; | 02:14:56 |
@qbit:tapenet.org | usually you only need that when the thing is building with cgo, .. maybe there is a dep that needs it | 02:15:31 |
@qbit:tapenet.org | oh, nope - that failed too | 02:15:45 |
@qbit:tapenet.org | oh, failed test | 02:15:54 |
@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 | that builds for me :D | 02:19:07 |
@peddie:matrix.org | thanks qbit ! how did you determine the SHA sum? | 03:20:13 |
@qbit:tapenet.org | Set it to “” and ram “nix build” | 03:20:49 |
@qbit:tapenet.org | It will error out with the calculated hash | 03:21:18 |
@peddie:matrix.org | oh, great, I see | 03:23:27 |
@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 | seems to be running great now. much appreciated, qbit, cheers, thanks again | 03:25:18 |
| 30 Mar 2023 |
| Marcus joined the room. | 18:40:46 |
| 2 Apr 2023 |
| @peddie:matrix.org left the room. | 12:24:16 |
| 4 Apr 2023 |
| [a4]nd[e3]r[s5][o0]n changed their profile picture. | 10:00:36 |
| 7 Apr 2023 |
hexa | hey! anyone taking care of 1.19.8 for 22.11? | 14:22:26 |
hexa | https://groups.google.com/g/golang-announce/c/Xdv6JL9ENs8 | 14:22:27 |
hexa | we're still on 1.19.6 there | 14:22:34 |
hexa | cc qbit | 14:22:39 |
@qbit:tapenet.org | Not yet that I have seen | 14:32:36 |
@qbit:tapenet.org | I can make a PR later today | 14:32:48 |
hexa | please | 14:39:07 |