| 7 Jun 2024 |
Marcus | yeah, it did not like that at all. lot of inconsistent vendoring 😕 | 09:07:43 |
Marcus | wait, I just did a dumb, it might be working 🙂 | 09:11:20 |
Paul Meyer (katexochen) | https://github.com/NixOS/nixpkgs/issues/318069
| 19:34:17 |
| 10 Jun 2024 |
| clvxaz joined the room. | 17:30:09 |
| 11 Jun 2024 |
| @kaya:catnip.ee 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 (UTC+8) 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 |
| @anjannath:matrix.org joined the room. | 18:01:31 |
| 4 Jul 2024 |
| eyJhb left the room. | 11:00:43 |
| Philip Taron (UTC-8) joined the room. | 15:53:53 |
| 7 Jul 2024 |
| 1H0 left the room. | 08:53:04 |
| @dminca:matrix.org joined the room. | 09:38:43 |
| 8 Jul 2024 |
| @kaya:catnip.ee 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 |