11 Jun 2024 |
| kaya changed their profile picture. | 08:03:43 |
15 Jun 2024 |
| @nscnt:matrix.org left the room. | 09:34:19 |
19 Jun 2024 |
| loudgolem joined the room. | 01:47:32 |
20 Jun 2024 |
| @bullet-bending-koala:matrix.org left the room. | 09:08:39 |
22 Jun 2024 |
| hdhog changed their profile picture. | 13:23:13 |
| @bumperboat:matrix.org changed their display name from bumperboat (UTC+1) to bumperboat (UTC+2). | 16:48:08 |
24 Jun 2024 |
| @danieln:selfnet.de joined the room. | 05:52:54 |
25 Jun 2024 |
| @axiomss:matrix.org joined the room. | 22:01:54 |
26 Jun 2024 |
| Rahul Sudharsan joined the room. | 02:25:03 |
| debugloop joined the room. | 13:27:10 |
27 Jun 2024 |
| @danieln:selfnet.de left the room. | 07:49:38 |
| Elliot Cameron joined the room. | 21:21:21 |
28 Jun 2024 |
| @axiomss:matrix.org left the room. | 04:15:27 |
1 Jul 2024 |
| ecmacat changed their profile picture. | 11:17:07 |
| ecmacat changed their profile picture. | 11:17:37 |
3 Jul 2024 |
| anjan joined the room. | 18:01:31 |
4 Jul 2024 |
| @eyjhb:eyjhb.dk left the room. | 11:00:43 |
| Philip Taron (UTC-8) joined the room. | 15:53:53 |
7 Jul 2024 |
| @1h0:matrix.org left the room. | 08:53:04 |
| dminca joined the room. | 09:38:43 |
8 Jul 2024 |
| kaya changed their profile picture. | 00:56:17 |
| @octvs:matrix.org joined the room. | 07:13:12 |
@octvs:matrix.org | Hey everyone,
I'm have little to no knowledge on go and how to build it. Mish-mashing from
other pkg derivations, I wrote the following:
{
buildGoModule,
lib,
fetchFromGitHub,
}:
buildGoModule rec {
pname = "wsl-notify-send";
version = "0.1.871612270";
src = fetchFromGitHub {
owner = "stuartleeks";
repo = pname;
rev = "refs/tags/v${version}";
hash = "sha256-XbBqbuAp4gmD/OBr8sjCUQS1m2eoiMrTKTrt9Dj/70w=";
};
vendorHash = null;
# GOOS = "linux";
meta = with lib; {
description = "WSL replacement for notify-send";
homepage = "https://github.com/stuartleeks/wsl-notify-send";
license = with licenses; [mit];
mainProgram = pname;
};
}
Which fails with
last 10 log lines:
> Running phase: unpackPhase
> unpacking source archive /nix/store/1livjb3n3n2hyzafx8qay42msxi45xnl-source
> source root is source
> Running phase: patchPhase
> Running phase: updateAutotoolsGnuConfigScriptsPhase
> Running phase: configurePhase
> Running phase: buildPhase
> Building subPackage .
> # gopkg.in/toast.v1
> vendor/gopkg.in/toast.v1/toast.go:352:41: unknown field HideWindow in struct literal of type "syscall".SysProcAttr
First searches I did online pointed towards an OS issue so I've tried setting
GOOS='linux' to be resulted in the same error. I also tried to build the
module which is the dependency, toast explicitly however since it doesn't
have a go.mod file it surpassed the amount of knowledge I have over go.
Anybody has an idea how can I drive forward?
| 07:13:17 |
@octvs:matrix.org | * Hey everyone,
I'm have little to no knowledge on go and how to build it. Mish-mashing from other pkg derivations, I wrote the following:
{
buildGoModule,
lib,
fetchFromGitHub,
}:
buildGoModule rec {
pname = "wsl-notify-send";
version = "0.1.871612270";
src = fetchFromGitHub {
owner = "stuartleeks";
repo = pname;
rev = "refs/tags/v${version}";
hash = "sha256-XbBqbuAp4gmD/OBr8sjCUQS1m2eoiMrTKTrt9Dj/70w=";
};
vendorHash = null;
# GOOS = "linux";
meta = with lib; {
description = "WSL replacement for notify-send";
homepage = "https://github.com/stuartleeks/wsl-notify-send";
license = with licenses; [mit];
mainProgram = pname;
};
}
Which fails with
last 10 log lines:
> Running phase: unpackPhase
> unpacking source archive /nix/store/1livjb3n3n2hyzafx8qay42msxi45xnl-source
> source root is source
> Running phase: patchPhase
> Running phase: updateAutotoolsGnuConfigScriptsPhase
> Running phase: configurePhase
> Running phase: buildPhase
> Building subPackage .
> # gopkg.in/toast.v1
> vendor/gopkg.in/toast.v1/toast.go:352:41: unknown field HideWindow in struct literal of type "syscall".SysProcAttr
First searches I did online pointed towards an OS issue so I've tried setting
GOOS='linux' to be resulted in the same error. I also tried to build the module which is the dependency, toast explicitly however since it doesn't have a go.mod file it surpassed the amount of knowledge I have over go.
Anybody has an idea how can I drive forward?
| 07:14:27 |
Paul Meyer (katexochen) | octvs: From the the Makefile of wsl-notify-send (https://github.com/stuartleeks/wsl-notify-send/blob/main/Makefile#L8) and the readme of toast it looks like this must be build on windows. They also only release binaries for win: https://github.com/stuartleeks/wsl-notify-send/releases/tag/v0.1.871612270 | 07:35:52 |
jrick | fwiw, i tried cross compiling windows cgo executables with nix and ran into some issues. but if you are not using cgo, you can skip all of that hassle and use go's tooling directly to produce executables | 07:51:24 |
@octvs:matrix.org | In reply to @katexochen:matrix.org octvs: From the the Makefile of wsl-notify-send (https://github.com/stuartleeks/wsl-notify-send/blob/main/Makefile#L8) and the readme of toast it looks like this must be build on windows. They also only release binaries for win: https://github.com/stuartleeks/wsl-notify-send/releases/tag/v0.1.871612270 Thanks a lot for looking into it. Should have been more careful.
| 07:57:22 |
@octvs:matrix.org | In reply to @jrick:zettaport.com fwiw, i tried cross compiling windows cgo executables with nix and ran into some issues. but if you are not using cgo, you can skip all of that hassle and use go's tooling directly to produce executables Thanks, I will stick by just grabbing exe via fetchzip
| 07:57:42 |
9 Jul 2024 |
| sbc64 joined the room. | 16:48:58 |
14 Jul 2024 |
| Tsomipa_ts joined the room. | 18:55:24 |