!QCCCSJHEsTIfozrZxz:nixos.org

Nix + Go

152 Members
Go packaging for and with Nixpkgs. | Be excellent to each other.41 Servers

Load older messages


SenderMessageTime
11 Jun 2024
@kaya:catnip.eekaya changed their profile picture.08:03:43
15 Jun 2024
@nscnt:matrix.org@nscnt:matrix.org left the room.09:34:19
19 Jun 2024
@phanirithvij:matrix.orgloudgolem joined the room.01:47:32
20 Jun 2024
@bullet-bending-koala:matrix.org@bullet-bending-koala:matrix.org left the room.09:08:39
22 Jun 2024
@hdhog:matrix.hdhog.ruhdhog changed their profile picture.13:23:13
@bumperboat:matrix.org@bumperboat:matrix.org changed their display name from bumperboat (UTC+1) to bumperboat (UTC+2).16:48:08
24 Jun 2024
@danieln:selfnet.de@danieln:selfnet.de joined the room.05:52:54
25 Jun 2024
@axiomss:matrix.org@axiomss:matrix.org joined the room.22:01:54
26 Jun 2024
@rsuds211:matrix.orgRahul Sudharsan joined the room.02:25:03
@d:bugpara.dedebugloop joined the room.13:27:10
27 Jun 2024
@danieln:selfnet.de@danieln:selfnet.de left the room.07:49:38
@4noch:matrix.orgElliot Cameron joined the room.21:21:21
28 Jun 2024
@axiomss:matrix.org@axiomss:matrix.org left the room.04:15:27
1 Jul 2024
@ecmacat:matrix.orgecmacat changed their profile picture.11:17:07
@ecmacat:matrix.orgecmacat changed their profile picture.11:17:37
3 Jul 2024
@anjannath:matrix.organjan joined the room.18:01:31
4 Jul 2024
@eyjhb:eyjhb.dk@eyjhb:eyjhb.dk left the room.11:00:43
@philiptaron:matrix.orgPhilip Taron (UTC-8) joined the room.15:53:53
7 Jul 2024
@1h0:matrix.org@1h0:matrix.org left the room.08:53:04
@dminca:matrix.orgdminca joined the room.09:38:43
8 Jul 2024
@kaya:catnip.eekaya changed their profile picture.00:56:17
@octvs:matrix.org@octvs:matrix.org joined the room.07:13:12
@octvs:matrix.org@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@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
@katexochen:matrix.orgPaul 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:zettaport.comjrickfwiw, 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 executables07:51:24
@octvs:matrix.org@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@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:matrix.orgsbc64 joined the room.16:48:58
14 Jul 2024
@tsomipa_ts:matrix.orgTsomipa_ts joined the room.18:55:24

Show newer messages


Back to Room ListRoom Version: 9